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

(This post was last modified: 09-29-2015, 03:29 PM by Lykos22.)

I have this PHP script inside my Post_model constructor:

PHP Code:
$dir FCPATH 'uploads' DIRECTORY_SEPARATOR 'posts'
if (!
is_dir($dir)) {
    
mkdir($dir755true);


which shows me this error:
Code:
Severity: Warning

Message: mkdir(): Permission denied

and can't create the posts folder in order to upload images. If I comment this code and create the uploads/posts folder manually and then try to upload a file, the upload library shows my an error saying that the folder is not writable. How can I fix this error ?
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB