Gronk Posted March 12, 2010 Share Posted March 12, 2010 Hello! I'm trying to execute mkdir(test); Simple. But the directory is not being created. My only guess is that the web server doesn't have the proper rights to make that directory. I chmod to 777, but still no go. I was going to change the owner, but I don't know what to change it to. Can anyone help me get mkdir(); to work? Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/195031-permissions/ Share on other sites More sharing options...
ialsoagree Posted March 12, 2010 Share Posted March 12, 2010 Whose permission are you changing? Bare in mind, when a PHP script is run through an HTTP request, it's being run as a guest. The guest needs access to the directory. Quote Link to comment https://forums.phpfreaks.com/topic/195031-permissions/#findComment-1025282 Share on other sites More sharing options...
Gronk Posted March 13, 2010 Author Share Posted March 13, 2010 Then I guess I want Guest to have permissions to create the Directory. I need to create the directory when a new Customer is being added to the Data Base. This way there will be a folder to upload pix and other files later. Quote Link to comment https://forums.phpfreaks.com/topic/195031-permissions/#findComment-1025580 Share on other sites More sharing options...
teamatomic Posted March 13, 2010 Share Posted March 13, 2010 Please show the error message HTH Teamatomic Quote Link to comment https://forums.phpfreaks.com/topic/195031-permissions/#findComment-1025630 Share on other sites More sharing options...
Gronk Posted March 15, 2010 Author Share Posted March 15, 2010 I'm not getting an error. The code is just not creating a folder. But it will execute the rest of the code, such and moving to the next page. Quote Link to comment https://forums.phpfreaks.com/topic/195031-permissions/#findComment-1026390 Share on other sites More sharing options...
Gronk Posted March 16, 2010 Author Share Posted March 16, 2010 I check some of my settings. PHP Safe mode is not enabled. I can not create folders or upload pix. How do I get an error message that is helpful. mkdir("temp") or die("did not make dir"); Only errors "did not make dir". Not very helpful. I'm sure it's probably a config issue, but I don't know where. I had a server with fedora 3 and upload worked find. I'm using fedora 10 now. Quote Link to comment https://forums.phpfreaks.com/topic/195031-permissions/#findComment-1027018 Share on other sites More sharing options...
Gronk Posted March 18, 2010 Author Share Posted March 18, 2010 So that's it? There is no help for me? I'm S.O.L.? Ok Thanks anyway. Quote Link to comment https://forums.phpfreaks.com/topic/195031-permissions/#findComment-1028047 Share on other sites More sharing options...
salathe Posted March 18, 2010 Share Posted March 18, 2010 Turn up (and on!) your error reporting levels. Use error_reporting(E_ALL | E_STRICT); ini_set('display_errors', '1'); somewhere before the mkdir line. Quote Link to comment https://forums.phpfreaks.com/topic/195031-permissions/#findComment-1028061 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.