note 32549 deleted from function.file-exists by sniper

From: Date: Sun, 23 Nov 2003 01:27:42 +0000
Subject: note 32549 deleted from function.file-exists by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-60835@lists.php.net to get a copy of this message
Note Submitter: webmaster@NOSPAM onlinegs.com ---- 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.

« previous php.notes (#60835) next »