View Full Version : Resolved file_exists

03-28-2010, 04:23 AM
Trying to find why my function for checking to see if the file does exist, but it doesn't seem to work, get no errors. (I noted out the open and read parts cause they made no difference)

public function checkDir($action){

//$openDir = opendir("./include");
//$readDir = readdir("include");

if (file_exists('./include/'.$action.'/load.php')) {
return $action;
} else { return $action = 'home'; }


any ideas to check and be sure that the file = true ?