Recursive Find File

Recursively looks for a file in directories in the current a top-level from the calling script. Will return false if the file cannot be found.

Usage

$file = find_file('file_in_a_higher_directory_but_dont_know_where.php');

if ($file)
include($file);
else
echo "File Not Found!";

 

Comments