ID:               20710
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Filesystem function related
 Operating System: Linux RedHat 7.2
 PHP Version:      4.2.3
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2002-11-29 01:44:51] [EMAIL PROTECTED]

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

Reply via email to