To set a connection timeout, use
stream_set_timeout(), or
edit php.ini
source: http://bugs.php.net/bug.php?id=45785
XMLReader::open
(PHP 5 >= 5.1.2)
XMLReader::open — Fixe le URI contenant le XML à analyser
Description
bool
XMLReader::open
( string $URI
[, string $encoding
[, int $options= 0
]] )
Fixe le URI contenant le document XML à être analysé.
Liste de paramètres
- URI
-
URI pointant vers le document.
- encoding
-
L'encodage du document, ou NULL.
- options
-
Un masque de constante LIBXML_*.
Valeurs de retour
Cette fonction retourne TRUE en cas de succès, FALSE en cas d'échec.
Historique
| Version | Description |
|---|---|
| 5.2.0 | Les paramètres encoding et options ont été ajoutés. |
Voir aussi
- XMLReader::xml - Fixe les données contenant le XML à analyser
- XMLReader::close - Ferme l'entrée XMLReader
XMLReader::open
hoball
23-Oct-2009 07:12
23-Oct-2009 07:12
crungmungus at gmail dot com
16-Sep-2008 12:11
16-Sep-2008 12:11
Windows users remember to enable php_openssl.dll in your php.ini if you want to be able to use this function (and others) with a HTTPS URL.
