please help meWarning: mkdir() [function.mkdir]: File exists in..xxxxx/register.php. yeah yeah what is wrong here is my code:
btw im at xxxxx/register.php
$documentroot = $_SERVER['DOCUMENT_ROOT'];
if(mkdir($documentroot ."/". $username , 0777))
{
$profile = $documentroot ."/". $username ."/index.php" ;
$filegettingcopy = $documentroot ."/xxxxx/index.php" ;
if (copy($filegettingcopy, $profile))
{echo "<br> You can access your profile at <a href=\"http://www.mysite.com/" . $username. "\">www.mysite.com/$username</a> <br>";
}}
else
{
echo "There was a problem. Your profile was not made. ";
}
those few lines of code are supposed to make the directory of the username of the person who registering chooses....
AND copy the index.php file from the directory xxxxx into the new "username" directory.
im getting the error and obviously there was a problem.. your profile was not made. what am i doing incorectly?