Jump to content

[SOLVED] mkdir troubles


Jin597

Recommended Posts

I've been having some troubles figuring out why the mkdir command doesn't work... 

currently have php5.0 installed and I am trying to do the command via a web-script.  Below is the past of the data.  Any ideas why the mkdir function is always returning false? (permissions are 775)

 

$mydir = $_POST['directoryname'];
if (mkdir($mydir, 0755)) {
   echo "success";
}else{
   echo "failed";
}

 

I've tried just a straight  mkdir('testing', 0755);  and it also didn't work... not sure what is going wrong here.

Link to comment
https://forums.phpfreaks.com/topic/51449-solved-mkdir-troubles/
Share on other sites

found the problem... it was in permissions.  the parent folder had the wrong permissions ...  ah.. need sleep... 

however, still not sure why this didn't show up with the errors on, but anyway, it works now... will look more in the am.  marking as [solved - PMFI]  Problem magically fixed itself

Link to comment
https://forums.phpfreaks.com/topic/51449-solved-mkdir-troubles/#findComment-253396
Share on other sites

Archived

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

×
×
  • 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.