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.


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to