Bogey Posted January 22, 2012 Share Posted January 22, 2012 I have tried all of the next: mkdir('test/')mkdir('test') chdir('../');$albumfolder = getcwd() . '/secure';mkdir($albumfolder); chdir('../');$albumfolder = getcwd() . '/secure/';mkdir($albumfolder); chdir('../../');$albumfolder = getcwd() . '/secure';mkdir($albumfolder); chdir('../../');$albumfolder = getcwd() . '/secure/';mkdir($albumfolder); chdir('../../');$albumfolder = getcwd() . '/public_ftp/secure/';mkdir($albumfolder); Also tried the 0777 value... NOTHING worked!Any help? Link to comment Share on other sites More sharing options...
boen_robot Posted January 22, 2012 Share Posted January 22, 2012 Also tried the 0777 value...If PHP doesn't have enough permissions, it might even miss the permission to set permissions. You may have to set 0777 permissions from another place (e.g. a shell, or a control panel provided by your host). Link to comment Share on other sites More sharing options...
Bogey Posted January 22, 2012 Author Share Posted January 22, 2012 I did send a message to the host, hope they can help me further :S I think it is kind of strange, that it is not possible, to let PHP adding directory's! Or is that cause safety? Link to comment Share on other sites More sharing options...
Bogey Posted January 22, 2012 Author Share Posted January 22, 2012 So the reason I can't make dirs, is cause of to little permission by PHP? Link to comment Share on other sites More sharing options...
boen_robot Posted January 22, 2012 Share Posted January 22, 2012 So the reason I can't make dirs, is cause of to little permission by PHP?Most likely, yes. The other possibility is a buggy PHP version, but either way, it's not something you can fix in your PHP code.And yes, the reason some hosts forbid this is for security. Most of them however don't disable it completely. They just disable it by default, and let you enable it if you need it, hence my earlier comment about a shell or a control panel. Link to comment Share on other sites More sharing options...
Bogey Posted January 22, 2012 Author Share Posted January 22, 2012 Thnx for the info, I am in contact with my host.... hope soon it will be fixed Link to comment Share on other sites More sharing options...
Bogey Posted January 23, 2012 Author Share Posted January 23, 2012 Ok, got it working! thnx! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.