We are trying to run the following script on a website that we do not have live yet. Therefore we are viewing the site using www.servername.com/~username

The issue is that the folder does not get created.

I am thinking this is due to either a permission issue or something. Can someone give me an idea on how to get this resolved? I would think it should work just as if they were running with a domain name???

Code sniplet:
PHP Code:
//    CREATE FOLDER FOR PHOTOS
$dir_name getcwd() . "/../" "photos$nextHighest";
mkdir$dir_name0755 );
echo 
"&status=ok&"