I need to check to see if a file exists in the directory a page is being called from. The trick is that this function is being defined in an include file, so I want to avoid having the "file_exists() function checking the include directory. I want to do something like the following... however, I am not sure how to call this function with the correct syntax.
if (file_exists(./nav_left.inc)) {
include("./nav_left.inc");
}
Any help, as always is very much appreciated. Thanks in advance.