note 22401 deleted from function.file-exists by jimw
| From: | jimw@php.net | Date: | Tue, 02 Jul 2002 16:27:27 +0000 |
| Subject: | note 22401 deleted from function.file-exists by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-32509@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.