note 51903 added to function.imagecreatefromjpeg

From: Date: Thu, 14 Apr 2005 14:15:02 +0000
Subject: note 51903 added to function.imagecreatefromjpeg
Groups: php.notes 
Request: Send a blank email to php-notes+get-88000@lists.php.net to get a copy of this message
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... ---- Manual Page -- http://www.php.net/manual/en/function.imagecreatefromjpeg.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51903 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51903&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51903&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51903&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51903&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51903&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51903&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#88000) next »