Results 1 to 1 of 1
Thread: script times out why??
Feb 23, 2004, 06:29 #1
- Join Date
- Aug 2001
- 0 Post(s)
- 0 Thread(s)
script times out why??
Hi all ...
i have a script i want to use to get one line from a table (from a different page)
the line should have a specific word in it ...
this is what I got so far:
$trigger = 'myname';
$stop = 0;
while ($start = strpos($code, '<TR', $stop))
$stop = strpos($code, '</TR', $start)+5; //this is the line it times out on!!!
$tmp = strpos($code, $trigger, $start);
if($tmp > $start && $tmp < $stop)
$line .= Substr($code, $start, $length);
if($line == '')
$line = $trigger.' wasn't there sorry!';
Peanutsthe neigbours (free) WIFI makes it just a little more fun