Jump to content


Photo

SOLVED- it's not creating the directory


  • Please log in to reply
1 reply to this topic

#1 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 06 October 2006 - 06:47 PM

<?php
if (!mkdir("/userpages/{$_SESSION[subdomain]}")) {
$errorhandler .= "There was a problem creating the sub-domain, please contact support asap.<br />";
}
?>
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.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#2 craygo

craygo
  • Staff Alumni
  • Advanced Member
  • 1,973 posts
  • LocationRhode Island

Posted 06 October 2006 - 07:44 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users