note 58375 deleted from function.imagejpeg by cmb

From: Date: Sun, 20 Oct 2019 08:57:42 +0000
Subject: note 58375 deleted from function.imagejpeg by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-212717@lists.php.net to get a copy of this message
Note Submitter: mitnick at cc dot lv ---- 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); ?>

« previous php.notes (#212717) next »