Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.