Re: Using File_exists? (RESOLVED)
| From: | Shawn McKenzie | Date: | Wed, 03 Jun 2009 19:53:18 +0000 |
| Subject: | Re: Using File_exists? (RESOLVED) | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-293577@lists.php.net to get a copy of this message | ||
João Cândido de Souza Neto wrote:
> The var $_SERVER["DOCUMENT_ROOT"] in your case contais
> "/Applications/MAMP/htdocs/" so using it whenever you change your server,
> it´ll work without any change.
>
Yes, moral of the story is: file_exists() is for use on a file system or
using a wrapper that supports stat(), which HTTP does not.
--
Thanks!
-Shawn
http://www.spidean.com