ID: 30354
Updated by: [EMAIL PROTECTED]
Reported By: janitor at wonkavision dot net
Status: Feedback
Bug Type: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
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.)
Previous Comments:
------------------------------------------------------------------------
[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