Re: Problemas con la funcion include()

From: Date: Thu, 13 Mar 2003 13:06:29 +0000
Subject: Re: Problemas con la funcion include()
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-33647@lists.php.net to get a copy of this message
Gracias Roberto, ya ensaye con esa opción: http://cpanel.nocspeed.com/~expograf/index2.php el cual llama a.hello.php, el resultado es el mismo: Warning: main(http://cpanel.nocspeed.com/~expograf/hello.php) > [function.main]: failed to create stream: HTTP request failed!  in > /usr/home/expograf/public_html/index.php on line 9 > > Warning: main() [function.main]: Failed opening > 'http://cpanel.nocspeed.com/~expograf/hello.php' for > inclusion > (include_path='') in /usr/home/expograf/public_html/index.php on line 9 Lo instale tambien en http://fotograf-co.com/ (el mismo servidor) y lo mismo: "failed to create stream". Segun el manual (http://www.zend.com/manual/function.include.php) ... If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), you can specify the file to be included using an URL (via HTTP or other supported wrapper ... Como puedo ver si "URL fopen wrappers" esta habilitada o no?? Gracias Andres Rubio ----- Original Message ----- From: "Roberto Lizana" <r.lizana@telefonica.net> To: <lista@phpes.com> Sent: Thursday, March 13, 2003 5:24 AM Subject: RE: [PHP-ES] Problemas con la funcion include() > Por lo que veo la instruccion include si te esta funcionando correctamente, > el problema lo tienes al cargar el script hello.txt. > > Se sugiero que modifiques la extension de hello.txt a hello.php > > > Espero que te sirva de algo... > > -----Mensaje original----- > De: Andres Rubio [mailto:andesrubio@infoartnet.com] > Enviado el: jueves, 13 de marzo de 2003 3:29 > Para: lista@phpes.com > Asunto: [PHP-ES] Problemas con la funcion include() > > > Hola Listeros, Estoy cambiando de servidor (Caracteristicas del nuevo PHP > Version 4.3.1 http://cpanel.vortechhosting.com/phpinfo.php) y > al pasar el > codigo que esta funcionando al nuevo encuentro que la funcion include() no > funciona con un URL, Si funciona con direcciones relativas --locales--) > > Tengo este codigo: > *************** index.php **** > <html> > <head> > <title></title> > </head> > <body bgcolor="#FFFFFF"> > <? > include('/²ôH!*~f_ƒºÓ > ¿http://cpanel.nocspeed.com/~expograf/hello.txt'); > ?> > </body> > </html> > *********************** > > ****************** hello.txt: ********* > <? > print('HELLO'); > ?> > *********************** > > Al ejecutarlo en (http://cpanel.nocspeed.com/~expograf/ ) saca este error: > > ********* > Warning: main(http://cpanel.nocspeed.com/~expograf/hello.txt) > [function.main]: failed to create stream: HTTP request failed!  in > /usr/home/expograf/public_html/index.php on line 9 > > Warning: main() [function.main]: Failed opening > 'http://cpanel.nocspeed.com/~expograf/hello.txt' for > inclusion > (include_path='') in /usr/home/expograf/public_html/index.php on line 9 > ************** > > Alguna Idea de que puede estar pasando?? > > Muchas gracias por la ayuda. > > Andrés Rubio > > > > > > --------------------------------------------------------------------- > 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 (#33647) next »