Re: failed to open stream: HTTP request failed! ICY 404

From: Date: Wed, 30 Jul 2003 23:01:24 +0000
Subject: Re: failed to open stream: HTTP request failed! ICY 404
References: 1 2  Groups: php.general.es 
Request: Send a blank email to general-es+get-38899@lists.php.net to get a copy of this message
Bueno... el asunto se soluciona poniendo en el php.ini user_agent="Mozilla de mierda" Pero, no habra alguna forma de evitar tocar el php.ini? ----- Original Message ----- From: "info[thekaiser.net]" <info@thekaiser.net> To: <lista@phpes.com> Sent: Wednesday, July 30, 2003 11:51 PM Subject: Re: [PHP-ES] failed to open stream: HTTP request failed! ICY 404 > Acabo de encontrar esto: > > Your XML parser MUST send a User-Agent: HTTP header containing the > word "Mozilla" in order for the DNAS to recognize it as something > other than a listener. > > Ahora... cual seria la manera de indicar dichas cabeceras? con setenv? o > cual es la función en PHP? > > Gracias > ----- Original Message ----- > From: "info[thekaiser.net]" <info@thekaiser.net> > To: <lista@phpes.com> > Sent: Wednesday, July 30, 2003 11:44 PM > Subject: [PHP-ES] failed to open stream: HTTP request failed! ICY 404 > > > > Hola listeros. Espero anden bien. > > > > Resulta, que ejecuto el siguiente código: > > > > <?php > > $array = file > > > ("http://www.sobreinternet.com:8000/admin.cgi?pass=claveaca&mode=viewxml&pag > > e=0"); > > > > echo count($array); > > ?> > > > > y recibo el siguiente error: > > > > > > Warning: > > > file(http://www.sobreinternet.com:8000/admin.cgi?pass=fi2dram&mode=viewxml&p > > age=0): failed to open stream: HTTP request failed! ICY 404 Resource Not > > Found in C:\www\xml.php on line 2 > > 1 > > > > ¿Alguna idea de como evitarlo? > > > > Gracias > > > > > > --------------------------------------------------------------------- > > Archivo On-line: http://www.phpes.com/ > > via news: news://news.phpes.com/ > > Manual PHP en español: http://www.php.net/manual/es/ > > Para dar de baja la suscripción, mande un mensaje a: > > lista-unsubscribe@phpes.com > > > > > --------------------------------------------------------------------- > Archivo On-line: http://www.phpes.com/ > via news: news://news.phpes.com/ > Manual PHP en español: http://www.php.net/manual/es/ > Para dar de baja la suscripción, mande un mensaje a: > lista-unsubscribe@phpes.com >

« previous php.general.es (#38899) next »