ID: 30354 User updated by: janitor at wonkavision dot net Reported By: janitor at wonkavision dot net -Status: Feedback +Status: Open Bug Type: Documentation problem -Operating System: Irrelevant +Operating System: Red Hat 9.0 -PHP Version: Irrelevant +PHP Version: 4.3.0 New Comment:
Im running PHP4.3.0 on RHL9 As far as the second original snippet I left out the first slash in the comments. In the actual code I included it. Is this enough info? I cut and pasted this from phpinfo() on GD. GD Support enabled GD Version bundled (2.0 compatible) FreeType Support enabled FreeType Linkage with freetype T1Lib Support enabled GIF Read Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled >From Configure Command: './configure' '--with-gd' '--with-ttf' '--with-t1lib=/usr/local,sharedi' '--with-pear' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-jpeg-dir=/usr' '--with-gettext' '--with-dom=shared' '--with-db3=shared' '--with-interbase=shared,/usr' '--with-mysql=shared,/usr/local/mysql' '--with-pgsql=shared,/usr/local/pgsql' '--with-apxs=/usr/sbin/apxs' '--with-pdflib=shared,../pdflib-4.0.3-Linux/bind/c/' '--with-imap-ssl' '--with-imap=shared' '--with-mcrypt=shared' '--with-curl=shared' '--with-ldap=shared' '--with-regex=system' '--with-iconv' '--with-zlib' '--with-kerberos' '--enable-dba=shared' '--enable-ftp' '--enable-xml' '--enable-mbstring' '--enable-mbregex' '--disable-mbstr-enc-trans' '--enable-track-vars' '--enable-safe-mode' '--enable-memory-limit' '--enable-xslt=shared' '--with-xslt-sablot=shared' Previous Comments: ------------------------------------------------------------------------ [2004-10-08 09:13:33] [EMAIL PROTECTED] This is definitly not the case under windows either. I'm using GD2 (PHP 5 / PHP 4.3.9). I suppose it is possible this is a GD1 issue, there were many changes to the path handling. As Derick said: please provide some more information. (Also, the second code snippet is still a relative link.) ------------------------------------------------------------------------ [2004-10-08 08:52:32] [EMAIL PROTECTED] This is not true, there is no reason why to use the full path (alteast not on Linux). Please fill in your PHP version and operating system and provide information on how you compiled PHP. ------------------------------------------------------------------------ [2004-10-07 20:10:13] janitor at wonkavision dot net Description: ------------ The other day I spent 2 hours trying to find a bug in my code becasue imagecreatefromjpeg() requires absolute path and the docs dont make it clear that you cannot use a relative path. There is a user comment about this, but I think it probably needs to be in the docs. Thanks for the help! Reproduce code: --------------- imagecreatefromjpeg("nextdir/filename.jpg"); it should be something like imagecreatefromjpeg("var/www/project/nextdir/filename.jpg"); Expected result: ---------------- no output ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30354&edit=1