#20710 [Csd]: file_exists() doesn't work normally

From: Date: Fri, 29 Nov 2002 08:25:07 +0000
Subject: #20710 [Csd]: file_exists() doesn't work normally
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-26146@lists.php.net to get a copy of this message
ID: 20710 User updated by: pomozoff@mail.ru Reported By: pomozoff@mail.ru Status: Closed Bug Type: Filesystem function related Operating System: Linux RedHat 7.2 PHP Version: 4.2.3 New Comment: Thx, all is working now ^) Previous Comments: ------------------------------------------------------------------------ [2002-11-29 01:46:11] edink@php.net This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2002-11-29 01:44:51] pomozoff@mail.ru file_exists() function returns false on the relative path to the file, which is REALLY exists. But its working well if the path is absolute. code sample: $filename = "./template/sub/install.txt"; if (!file_exists($filename)) { $fd = fopen ($filename, "r"); $contents = fread ($fd, filesize ($filename)); fclose ($fd); die("Error - file $filename does not exist.\n $contents"); } try it, and marvel. why? PS In the documentation say nothing about types of path. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20710&edit=1

« previous php.bugs (#26146) next »