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

Verlauf / Chronik / History: (50) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzSonstige GrunderweiterungenStreamsStream Funktionenstream_resolve_include_path

Ein Service von Reinhard Neidl - Webprogrammierung.

Verdiene Geld mit Deiner Homepage oder deinem Blog: Setzte eine Textlinkwerbung und bestimme den Preis selber.
Einfach kostenlos anmelden und einen Platz auf Deiner Homepage anbieten.
Make money with your homepage or blog: Set a text link advertising and declare the price.
Register free of charge and offer a place on your homepage.
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"


Verdiene Geld mit Deiner Homepage oder deinem Blog: Setzte eine Textlinkwerbung und bestimme den Preis selber.
Einfach kostenlos anmelden und einen Platz auf Deiner Homepage anbieten.
Make money with your homepage or blog: Set a text link advertising and declare the price.
Register free of charge and offer a place on your homepage.
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",...)