#30354 [Fbk]: imagecreatefromjpeg() requires absolute path + docs dont make that clear

From: Date: Fri, 08 Oct 2004 07:13:35 +0000
Subject: #30354 [Fbk]: imagecreatefromjpeg() requires absolute path + docs dont make that clear
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969364455@lists.php.net to get a copy of this message
ID: 30354 Updated by: aidan@php.net 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] derick@php.net 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

« previous php.doc (#969364455) next »