I am having problems loading an image script.
I know that there are hundreds of identical questions, but I have not found one that will work for me.
$upload_dir = "images/postcards/";
chmod($upload_dir, 777);
if (is_writable($upload_dir)) {
echo 'The file is writable';
} else {
echo 'The file is not writable';
}
This always returns that the file is "not writable"
I tried to install chmodon 0777and -rwxrwxrwx. But the result has always been the same. Any ideas?
source
share