Re: Problems with remote include

From: Date: Thu, 30 Oct 2003 19:41:31 +0000
Subject: Re: Problems with remote include
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-168175@lists.php.net to get a copy of this message
On Wed, 2003-10-29 at 17:52, Chris Shiflett wrote: > --- Pablo Zorzoli <plz@aconectarse.com> wrote: > > > <? > > > include('http://www.google.com/'); > > > ?> > > > > > > That should basically take Google's HTML and make it your own. > > > The image will obviously not work, but it should otherwise look > > > like Google's home page. > > > > yes i get Google's HTML. > > OK, so this proves that this method works in your environment. Given this, can > you identify the differences between this code and your own? Maybe if you try > to break it down into its simplest case, you will reveal some subtle error that > we all missed. Cris and rest of the list, I've tried with the simlpest example: --- output.php <? echo "Hello World!"; ?> -- test.php <html><head><title>tesing!</title></head> <body> <?php include ('http://***.com/output.php'); ?> </body></html> ------ The result is: I spend a lot of time waiting for the response, and i only receive a blank page with the title testing! (wich is okay), but i don't get the hello world. Any clue? Regards, Pablo

« previous php.general (#168175) next »