PHP.nl

stream_resolve_include_path

stream_resolve_include_path

Resolve filename against the include path

 **stream_resolve_include_path** string $filename

Resolve against the include path according to the same rules as /. filename``fopen``include

filenameThe filename to resolve.

Returns a containing the resolved absolute filename, return.falseforfailure. string

Voorbeeld: example

Basic usage example.

<?php
var_dump(stream_resolve_include_path("test.php"));
?>
string(22) "/var/www/html/test.php"