Ninjakreborn Posted October 6, 2006 Share Posted October 6, 2006 [code]<?phpif (!mkdir("/userpages/{$_SESSION[subdomain]}")) {$errorhandler .= "There was a problem creating the sub-domain, please contact support asap.<br />";}?>[/code]For some reason it's not creating it.First I had permission denied error, then I made sure the directory I was point to, was 777, and the page I am doing it with was 777. THe thing is, the sesison is working, it is suppose to go into /userpages/ and create the subdirectory testjust to see it in action, but it's not working for some reason, any advice. Quote Link to comment https://forums.phpfreaks.com/topic/23204-solved-its-not-creating-the-directory/ Share on other sites More sharing options...
craygo Posted October 6, 2006 Share Posted October 6, 2006 depending on your file structure, if this script is at www.mydomain.com/thisscript.php and the userpages is in direct in line with the root (ie www.mydomain.com/userpages/domain_name) then you need to remove the slash at the beginning. the script will execute from it's current location.Ray Quote Link to comment https://forums.phpfreaks.com/topic/23204-solved-its-not-creating-the-directory/#findComment-105235 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.