Hello!
I am trying to make this work.
//make user folder
$userid = $_SESSION['loginid'];
$userdir = "./u/".$userid."/";
if (!is_dir($userdir))
{
mkdir($userdir,0777);
copy("/home/users/web/b681/ipg.xxxx/shack/u/index.php","/home/users/web/b681/ipg.xxxx/shack/u/".$userid."/index.php");
echo "Your directory was created. This is where all your files will be stored.<br>";
}
else echo "";
This part of the code is Ok but it does not copy the file over to the created folder.
Anyone would like to help me on this?
Trying to copy the /u/index.php to /u/$userdir/index.php
Sincerely,
Sorcher