downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

stream_notification_callback> <stream_get_wrappers
Last updated: Sun, 16 Aug 2009

view this page in

stream_is_local

(PHP 5 >= 5.2.4)

stream_is_localVérifie si un flux est local

Description

bool stream_is_local ( mixed $stream_or_url )

stream_is_local() vérifie si le flux ou l'URL stream_or_url est local au système ou non.

Liste de paramètres

stream_or_url

La ressource de flux ou l'URL à vérifier.

Valeurs de retour

Cette fonction retourne TRUE en cas de succès, FALSE en cas d'échec.

Exemples

Exemple #1 Exemple avec stream_is_local()

Exemple simple.

<?php
var_dump
(stream_is_local("http://example.com"));
var_dump(stream_is_local("/etc"));
?>

L'exemple ci-dessus va afficher quelque chose de similaire à :

bool(false)
bool(true)



add a note add a note User Contributed Notes
stream_is_local
There are no user contributed notes for this page.

stream_notification_callback> <stream_get_wrappers
Last updated: Sun, 16 Aug 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites