Hi,
I'm including a local class that requests a file from a remote server. This process however, is rather unreliable (in the sense that the remote server is often overloaded), and I would have to wait a few seconds (about 20 or so) before the include gives up and continues. Now, I would like to have a time limit on the execution time of the included script, say 5 seconds.
Current code:
include('siteclass.class.php');
Thx for the help!
//update thx ppl:
My code inside the class: `$movie = str_replace(" ","+",$movie); $string = join('',file($siteurl.$l.'/moviename-'.$movie));
if(!$i) { static $i = 1;} if($file_array = $string) {
$result = Return_Substrings($file_array, '<item>', '</item>');
foreach($result as $res) {`
That's basically it, as far as the loading goes. The internal processing takes about 0.1 s. I guess that's pretty doable.
thx again!