note 58375 added to function.imagejpeg

From: Date: Wed, 02 Nov 2005 10:26:00 +0000
Subject: note 58375 added to function.imagejpeg
Groups: php.notes 
Request: Send a blank email to php-notes+get-97970@lists.php.net to get a copy of this message
i had the same problem as tobylewis had when i tried to call imagejpeg(), width porperly parameters given it displayed imagejpeg(): Unable to access usr/home/public_html/pic1.jpg imho if not correctly configured server this function is not allowed to create the file on disk. the workaround however is if you create the file using some other function, before call imagejpeg(). something like this <? $fh=fopen($file_name_dest,'w'); fclose($fh); imagejpeg($dest,$file_name_dest, $quality); ?> ---- Manual Page -- http://www.php.net/manual/en/function.imagejpeg.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58375 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58375&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58375&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58375&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58375&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58375&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58375&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58375&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58375&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#97970) next »