note 51903 deleted from function.imagecreatefromjpeg by cmb
| From: | cmb@php.net | Date: | Sun, 11 Dec 2016 11:20:14 +0000 |
| Subject: | note 51903 deleted from function.imagecreatefromjpeg by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208515@lists.php.net to get a copy of this message | ||
Note Submitter: Zap
----
Under some configurations imagecreatefromjpeg will create files that are owned by the webserver
rather than the php user. For example, php may be run as phpuser and the image will be created under
apache.
This can lead to permissions problems - only a +0777 will be enough to be able to create a picture.
My solution was to chmod over ftp to 0777 just before the picture is written then change back to
0755 when the image has been created.
The alternative of course would be to have a properly configured system...