Web fetching script

From: Date: Wed, 22 Aug 2001 11:35:48 +0000
Subject: Web fetching script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63892@lists.php.net to get a copy of this message
Hi all I have a web fetching script that fetches text from an external URL and I would like to grab two lots of text at the same time - can anyone tell me why this isn't working? <? $GrabURL = "http://grabfile.html"; $GrabStart = "start"; $GrabEnd = "stop"; $file = fopen("$GrabURL", "r"); $rf = fread($file, 20000); $grab = eregi("$GrabStart(.*)$GrabEnd", $rf, $printing); echo $printing; rewind($rf); $grab2 = eregi("$GrabStart(.*)$GrabEnd", $rf, $printingb); echo $printingb; fclose($file); ?>

« previous php.general (#63892) next »