physaux Posted November 2, 2009 Share Posted November 2, 2009 Warning: mkdir() [function.mkdir]: Permission denied in /Users/../FileReader.php on line 80 //Line 80 below mkdir("/".$classname); //$classname is "DOG" How can I fix that? Link to comment https://forums.phpfreaks.com/topic/179992-solved-warning-mkdir-functionmkdir-permission-denied-in-how-to-fix/ Share on other sites More sharing options...
mikesta707 Posted November 2, 2009 Share Posted November 2, 2009 as the error message says, that directory doesn't have the correct file permissions. You will need to give whatever directory that script is in the correct file permissions Link to comment https://forums.phpfreaks.com/topic/179992-solved-warning-mkdir-functionmkdir-permission-denied-in-how-to-fix/#findComment-949547 Share on other sites More sharing options...
physaux Posted November 2, 2009 Author Share Posted November 2, 2009 as the error message says, that directory doesn't have the correct file permissions. You will need to give whatever directory that script is in the correct file permissions I did that, but I still get the same errors. Could it be that i am running it in XAMPP? I could upload it to my server, but the whole point of what I'm doing is just to batch create the folder structure. Any other ideas? Link to comment https://forums.phpfreaks.com/topic/179992-solved-warning-mkdir-functionmkdir-permission-denied-in-how-to-fix/#findComment-949551 Share on other sites More sharing options...
physaux Posted November 2, 2009 Author Share Posted November 2, 2009 Ok i solved the problem, it was syntax /dir is BAD /dir/ is BAD dir/ is GOOD Link to comment https://forums.phpfreaks.com/topic/179992-solved-warning-mkdir-functionmkdir-permission-denied-in-how-to-fix/#findComment-949564 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.