Jump to content

dir not writable [Solved]


onlyican

Recommended Posts

This is probs a stupid thing, but I am tired, and cant be bothered

Anyway

I have a class which checks and image and uploads it
Not a problem

I have been working on my local machine building this, and I uploaded it today ready for the client, so I did not have permission problems on my machine

anyway
I am running the function
is_writable
on the directory

The directory is from the root
Something like
/home/MyAccount/public_html/MainFolder/SubFolder/sub_subFolder

The script is telling me that the direcotory is NOT writable
I have set the chmod to 777 on sub_subFolder and SubFolder
it still came up
So I changed the code to read
if(!is_writable){
//Continue
}else{
//Error
}
To bypass this, to check if it was the function

but then the code failed to upload to the dir using function
imagepng()

Any ideas on this one
Link to comment
https://forums.phpfreaks.com/topic/27211-dir-not-writable-solved/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.