Bug #13090 Updated: function is unable to find files via absolute path.

From: Date: Sat, 01 Sep 2001 16:05:44 +0000
Subject: Bug #13090 Updated: function is unable to find files via absolute path.
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-64882@lists.php.net to get a copy of this message
ID: 13090 Updated by: sander Reported By: m.kumar@gmx.at Old Status: Closed Status: Bogus Bug Type: GetImageSize related Operating System: win2k PHP Version: 4.0.6 New Comment: Oops... not closed, it's a bogus... Previous Comments: ------------------------------------------------------------------------ [2001-09-01 12:04:00] sander@php.net /pics/foo/blah.jpg Means on Windows, in a php script: [current drive, ie. C]:\pics\foo\blah.jpg On all platforms, in a request to a webserver, it means: [documentroot]/pics/foo/blah.jpg Use "$DOCUMENT_ROOT/pics/foo/blah.jpg" in your PHP-script to emulate this behaviour. ------------------------------------------------------------------------ [2001-09-01 11:48:31] rasmus@php.net Are you sure that is the right path and not relative to your document root? It wants the real on-disk absolute path. ------------------------------------------------------------------------ [2001-09-01 11:05:05] m.kumar@gmx.at config: php 4.0.6 win32 binary dist, apache 1.3.20. while calling getimagesize on a file with relative path or via URL works, it fails to find a file specified via absolute path. example: verified path via browser is: http:/127.0.0.1/pics/foo/blah.jpg from a script in directory /pics called: getimagesize("foo/blah.jpg") .. works getimagesize("http:/127.0.0.1/pics/foo/blah.jpg") .. works getimagesize("/pics/foo/blah.jpg") .. fails: Unable to open '/pics/foo/blah.jpg' for reading. mike. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13090&edit=1

« previous php.dev (#64882) next »