zampu Posted September 13, 2007 Share Posted September 13, 2007 Ok well, I'm making "Free forum" type site. And its where someone registers, and it gives them example.com/thierselectedname, and its a forum. (hosted by me). And well, how would i copy all the files over to a new directory for every new user. I could use fwrite, but how do i copy directories?, and then the problem is would fwrite take a long time? or lag the server? So say a copy of the forum script is at: example.com/blah How would i copy that to example.com/selectedname ?? THanks for the help Quote Link to comment https://forums.phpfreaks.com/topic/69130-solved-fwrite-or/ Share on other sites More sharing options...
zampu Posted September 13, 2007 Author Share Posted September 13, 2007 Please! Quote Link to comment https://forums.phpfreaks.com/topic/69130-solved-fwrite-or/#findComment-347495 Share on other sites More sharing options...
Fadion Posted September 13, 2007 Share Posted September 13, 2007 I assume u have some files in the directory "blah" which are predifined, ex: - index.php - functions.inc.php - whatever.php To achieve what u want u could use copy for every file u want to move. I dont see this technique as a good design, but it depends on what u want to create. What does the "Free Forum type site" means? A free forum hosting site or im getting this wrong? Quote Link to comment https://forums.phpfreaks.com/topic/69130-solved-fwrite-or/#findComment-347511 Share on other sites More sharing options...
zampu Posted September 13, 2007 Author Share Posted September 13, 2007 Perfect! THanks Quote Link to comment https://forums.phpfreaks.com/topic/69130-solved-fwrite-or/#findComment-347673 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.