ID: 19784 Comment by: mrueegg at metaworx dot ch Reported By: m dot martinello at iol dot it Status: No Feedback Bug Type: *Directory/Filesystem functions Operating System: Linux 2.4.18 PHP Version: 4.2.3 New Comment:
as to my experiance file_exists uses the current working directory [getcwd()] for relative path's and not the directory the script is in. tested in v5.1.4 and 5.2-dev (26-Jun-2006 16:19) Previous Comments: ------------------------------------------------------------------------ [2002-10-22 01:00:05] php-bugs at lists dot php dot net No feedback was provided for this bug for over 2 weeks, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2002-10-06 14:59:33] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip ------------------------------------------------------------------------ [2002-10-06 14:59:05] m dot martinello at iol dot it I am using php 4.2.3 with httpd 2.0.43. The functions file_exists, is_file and file_size doesn't work at all. file_exists("file.txt"); gives me "false" even if the file "file.txt" exists in the same directory of the script containing that function. If I use the full path of "file.txt", file_exists("/full/path/to/file.txt"); gives me "true" and works well. How to solve this problem? I can't use the full path in the scripts. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19784&edit=1