Hi,
I got this stupid warning, over an over, and i cant find why :
Message: imagejpeg() [function.imagejpeg]: Unable to open ‘gallery/large/’ for writing: Is a directory
the code :
$toFile = 'gallery/large/';
$image = 'image.jpg';
imagejpeg($image, $toFile, 100); I use MAMP on MacOS X. :-$
This is what i tried before posting here:
- chmod 777 on the large folder
- sudo chown _www large ( to make mamp the owner of the folder )
- use relative and absolute path for the $toFile variable
- use mkdir($toFile, 0777); to create the folder with the script
- i can create and copy other things in the folder from my script, but impossible to use this function ... its a mystery for me.
If anyone have an idea, please give me an hit