PHP Doku:: Resolve filename against the include path - function.stream-resolve-include-path.html

Verlauf / Chronik / History: (41) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzSonstige GrunderweiterungenStreamsStream Funktionenstream_resolve_include_path

Ein Service von Reinhard Neidl - Webprogrammierung.

Stream Funktionen

<<stream_register_wrapper

stream_select>>

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"


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)