landysaccount Posted November 4, 2009 Share Posted November 4, 2009 Hello. I am having problems with mkdir. I've read some previous posts and have done some of what others have done but, I can't get it to work. Here's what I'm trying to do: echo mkdir( "./Dec2009", 0777, true ) ? "Success" : "Fail"; It always fails. Don't know why. I have SafeMode = Off just to test this but is not working. I also have the entire directory owned by www-data. Thanks in advanced for your help. Quote Link to comment https://forums.phpfreaks.com/topic/180302-help-with-mkdir/ Share on other sites More sharing options...
lemmin Posted November 4, 2009 Share Posted November 4, 2009 Most likely it is access rights. What type of server are you using? Quote Link to comment https://forums.phpfreaks.com/topic/180302-help-with-mkdir/#findComment-951161 Share on other sites More sharing options...
simshaun Posted November 4, 2009 Share Posted November 4, 2009 Have you tried using a full path instead? Quote Link to comment https://forums.phpfreaks.com/topic/180302-help-with-mkdir/#findComment-951165 Share on other sites More sharing options...
landysaccount Posted November 4, 2009 Author Share Posted November 4, 2009 I've tried full directory path already and is not working. I'm using apache2 with php5 on debian etch. Quote Link to comment https://forums.phpfreaks.com/topic/180302-help-with-mkdir/#findComment-951184 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.