Jump to content

Archived

This topic is now archived and is closed to further replies.

Ninjakreborn

SOLVED- it's not creating the directory

Recommended Posts

[code]<?php
if (!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 test
just to see it in action, but it's not working for some reason, any advice.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.