public static function fileExists($fileName)
    {
        $fp = @fopen($fileName, 'r', true);
        if (is_resource($fp)) {
            fclose($fp);
            return true;
        }
        return false;
    }
public static function fileExists($fileName)
    {
        $fp = @fopen($fileName, 'r', true);
        if (is_resource($fp)) {
            fclose($fp);
            return true;
        }
        return false;
    }
public static function fileExists ( $ fileName ) { $ fp = @ fopen ( $ fileName , 'r' , true ) ; if ( is_resource ( $ fp ) ) { fclose ( $ fp ) ; return true ; } return false ; }
Checks whether the file exists in the include path

@param    string  file name
@return   bool
Checks whether the file exists in the include path