|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-11-29 01:46 UTC] edink@php.net
[2002-11-29 02:25 UTC] pomozoff at mail dot ru
[2002-11-29 02:25 UTC] pomozoff at mail dot ru
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 08 18:00:01 2025 UTC |
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.