Re: include() question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey, what do you know, readfile() times out too.


----- Original Message ----- From: "Jay Blanchard" <jblanchard@xxxxxxxxxx>
To: "PHP" <php_list@xxxxxxxxxxxxxx>; "php" <php-general@xxxxxxxxxxxxx>
Sent: Monday, May 08, 2006 11:05 AM
Subject: RE:  include() question


[snip]
I am including a page from another server: (include("http://....";));

Works fine, but if for some reason that server is not responding, the page that is calling it also never returns, so the user ends up with a time out.

Is there something I can set that will not force the calling server to wait indefinetely for the remote server to respond, and just continue on?
[/snip]

This is;

a. A Bad Thing [tm]

2. RTFM http://www.php.net/include "Remote file may be processed at the remote server (depending on the file extension and the fact if the remote server runs PHP or not) but it still has to produce a valid PHP script because it will be processed at the local server. If the file from the remote server should be processed there and outputted only, readfile() is much better function to use. Otherwise, special care should be taken to secure the remote script to produce a valid and desired code."





--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.5/333 - Release Date: 5/5/2006

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux