PHP Dokumentation: Function stream-resolve-include-path
12. Januar 2010 von werner
stream_resolve_include_path
(PHP 5 >= 5.3.2, PHP 6)
stream_resolve_include_path — Resolve filename against the include path
Beschreibung
Resolve filename against the include path according to the same rules as fopen()/include() does.
Parameter-Liste
- string
The filename to resolve.
- context
A valid context resource created with stream_context_create().
Rückgabewerte
On success, the resolved absolute filename is returned. On failure, FALSE is returned.
Beispiele
Beispiel #1 stream_resolve_include_path() example
Basic usage example.
<?php
var_dump(stream_resolve_include_path("test.php"));
?>Das oben gezeigte Beispiel erzeugteine ähnliche Ausgabe wie:
unicode(10) "/var/www/html/test.php"
Changelog
| Version | Beschreibung |
|---|---|
| 6.0.0 | The context parameter was added. |