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 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! 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? 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 Link to comment https://forums.phpfreaks.com/topic/69130-solved-fwrite-or/#findComment-347673 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.