Jump to content

[SOLVED] fwrite or???


zampu

Recommended Posts

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 :D

Link to comment
https://forums.phpfreaks.com/topic/69130-solved-fwrite-or/
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.