How to make a html/php file and move it to a directory in php? For example, when a user registers:
it makes a directory with the name of the user
it makes a userpage file called index.php with the userpage code
it moves index.php to the directory
Offline
http://www.php.net/manual/en/function.mkdir.php
http://www.php.net/manual/en/function.fopen.php
http://www.php.net/manual/en/function.fwrite.php
http://www.php.net/manual/en/function.fclose.php
http://www.php.net/manual/en/function.copy.php
http://www.php.net/manual/en/function.unlink.php
Google is your friend
Last edited by rookwood101 (2011-10-09 16:09:15)
Offline
http://www.tizag.com/phpT/filecreate.php
fopen automatically creates a file if one is not found.
Offline