static function findBestUrlInIncludePath($path)
    {
        $newpath = $path;
        $reltoinclude;
        //if ( !is_file ( $newpath ) && !is_dir ( $newpath ) )
        //{
        $found = self::findFileToInclude($newpath, $newpath, $reltoinclude);
        $newpath = self::getRelativePath(str_replace("/", "\\", realpath($newpath)), dirname(__DIR__));
        if (!$found) {
            return false;
        }

        //}
        return $newpath;
    }
static function findBestUrlInIncludePath($path)
    {
        $newpath = $path;
        $reltoinclude;
        //if ( !is_file ( $newpath ) && !is_dir ( $newpath ) )
        //{
        $found = self::findFileToInclude($newpath, $newpath, $reltoinclude);
        $newpath = self::getRelativePath(str_replace("/", "\\", realpath($newpath)), dirname(__DIR__));
        if (!$found) {
            return false;
        }

        //}
        return $newpath;
    }
static function findBestUrlInIncludePath ( $ path ) { $ newpath = $ path ; $ reltoinclude ; //if ( !is_file ( $newpath ) && !is_dir ( $newpath ) ) //{ $ found = self :: findFileToInclude ( $ newpath , $ newpath , $ reltoinclude ) ; $ newpath = self :: getRelativePath ( str_replace ( "/" , "\\" , realpath ( $ newpath ) ) , dirname ( __DIR__ ) ) ; if ( ! $ found ) { return false ; } //} return $ newpath ; }
of a file path
of a file path