Verify if the directoy has chmod for write to apache user
: is there an error??? also, do an echo $_POST['projname'] in the beginning.. see if the value really comes in your script
: : Why dosent this code snippet work:
: : (The $name varible gets its value from a <form> tag.
: :
: : $name = $_POST['projname'];
: : ...
: : ...
: : <input name="projname" type="text" size=20 maxlength=25>
: :
: : )
: :
: : $projdir = '/home/neux/www/projects/';
: : $path_name = $location.$name;
: :
: : function createdir($location,$name)
: : {
: :
: : $path_name = $location.$name;
: : echo "Creating: ".$path_name;
: :
: : if((mkdir($path_name)) == TRUE)
: : {
: : chmod($path_name,0666);
: : echo " Directory created: ".$path_name;
: : return TRUE;
: : } else { echo "Failed to create dir: ". $path_name."";
: : return FALSE; }
: : }
: :
: :
: : Have try with alot and it faild every time to create the dir.
: : //d00zer
: : n e v e r s l o w d o w n
: :
:
:
DarQ
: url-->
http://mark.space.servehttp.com
:
: