Stream Funktionen
PHP Manual

stream_resolve_include_path

(PHP 5 >= 5.3.2)

stream_resolve_include_path Resolve filename against the include path

Beschreibung

string stream_resolve_include_path ( string $filename [, resource $context ] )

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 erzeugt eine ähnliche Ausgabe wie:

unicode(10) "/var/www/html/test.php"


Stream Funktionen
PHP Manual