Gamerz
04-03-2009, 01:27 AM
Ok, I'm going to use mkdir to make me a folder for my website...and everytime I make a folder, I want it to manually copy a file from a different location in my website, to the new folder I created...(/homepages/21/d748785/htdocs/uploader/index.php)
Here's the code:
-----
$foldername = $_REQUEST['username'];
if(is_dir("$folder"))
echo "directory exists!";
else
{
mkdir("./users/$foldername");
}
----
How would I implement the file copy code into my existing script above?
Here's the code:
-----
$foldername = $_REQUEST['username'];
if(is_dir("$folder"))
echo "directory exists!";
else
{
mkdir("./users/$foldername");
}
----
How would I implement the file copy code into my existing script above?