I thought I saw in one of the older manuals that there is an optional second parameter 
to 'file_exists' that will tell it too search the 'include_path' for a file instead of 
using an absolute path. However, I can't seem to find this documentation any more.

Does anyone know if this still works? How it works? If it's just a second boolean 
parameter or what?

In other words, instead of:

if (file_exists("/www/inc/my_script.php")) {...}

I'd like to say:

if (file_exists("my_script.php", TRUE)) {...} // or something like this

assuming "/www/inc" is part of my include_path.

Thanks.
Dean.

Reply via email to