note 43571 deleted from function.imagecreatefromjpeg by cmb

From: Date: Sun, 11 Dec 2016 11:18:18 +0000
Subject: note 43571 deleted from function.imagecreatefromjpeg by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-208509@lists.php.net to get a copy of this message
Note Submitter: jonlup at yahoo dot com ---- I played with "imagecreatefromjpeg()" function and, after a few tests, I found that the filename that it requires as parameter should be only a simple filename: the function does not work if in the string of the filename is specified a path to that file. The quickest workaround found: do a chdir() to the directory of your image file before try to use "imagecreatefromjpeg()" with your file as parameter. I did not test the other functions (imagecreatefromgd2(), imagecreatefromgd(), imagecreatefromgif() etc.), but I suppose that they work in the same way. I think that little trick should be specified in the manual.

« previous php.notes (#208509) next »