Try this:
http://www.php.net/manual/en/ref.curl.php
----- Original Message ----- 
From: "Ben Quinn" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 22, 2001 2:35 PM
Subject: [PHP] Web fetching script


> 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);
> 
> ?>
> 
> 
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to