note 22401 added to function.file-exists

From: Date: Mon, 17 Jun 2002 02:09:16 +0000
Subject: note 22401 added to function.file-exists
Groups: php.notes 
Request: Send a blank email to php-notes+get-31933@lists.php.net to get a copy of this message
dear simon__gray@NOSPAM.hotmail.com: You want to use DOUBLE quotes when you have a variable inside a string. Variables are not expanded in single-quote strings. ie: '$section/$id.inc.php' will not work, but "$section/$id.inc.php" will. Also, try file_exists($somevar), not file_exists('$somevar') for the same reason. '$somevar' is the string '$somevar', but $somevar (no quotes) is a variable. -- http://www.php.net/manual/en/function.file-exists.php http://master.php.net/manage/user-notes.php?action=edit+22401 http://master.php.net/manage/user-notes.php?action=delete+22401 http://master.php.net/manage/user-notes.php?action=reject+22401

« previous php.notes (#31933) next »