Jump to content

SOLVED- it's not creating the directory


Ninjakreborn

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.