note 32549 added to function.file-exists

From: Date: Fri, 30 May 2003 23:24:21 +0000
Subject: note 32549 added to function.file-exists
Groups: php.notes 
Request: Send a blank email to php-notes+get-49455@lists.php.net to get a copy of this message
To work with file_exists under Windows XP and Apache2 (PHP Build 4.3.1, havn't had a chance to upgrade yet, and its only a development enviroment). I have had to use realpath() to report the full path of the file. For Example: file_exists(realpath('file.ext')); where file.ext is the file with the extension, in this case it is assumed that the file is in the same directory as the script calling the function, others have posted how to use directories. Also note that single quotes (') must be used or else php will interpret it as fileext instead of file.ext. ---- Manual Page -- http://www.php.net/manual/en/function.file-exists.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32549 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32549&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32549&report=yes

« previous php.notes (#49455) next »