Welcome Guest, Not a member yet? Register   Sign In
Message: mkdir(): Permission denied
#7

You can use the PHP function is_writable( $filename )
http://php.net/manual/en/function.is-writable.php
It should check if the current user may write to the passed filename, where filename may be a file or directory.

But if I was you, I would create a directory manually in your root directory and set the read/write permissions. Then use this directory as your base dir for the uploads. As this directory seems to be required for your application there is no need to set it via a PHP script
Reply


Messages In This Thread
Message: mkdir(): Permission denied - by Lykos22 - 09-29-2015, 03:13 PM
RE: Message: mkdir(): Permission denied - by Martin7483 - 09-30-2015, 03:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB