Re: [PHP] grabbing content of a web page...
You can also do this: http://www.example.com/'); while (list ($line_num, $line) = each ($fcontents)) { echo "Line $line_num:; ", htmlspecialchars ($line), "\n"; } // get a web page into a string $fcontents = implode ('', file ('http://www.example.com/')); ?> PHP.net example always RTM... B i g D o g - Original Message - From: "Kelly Meeks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 27, 2002 1:53 PM Subject: [PHP] grabbing content of a web page... Howdy, I know there has to be a way to grab output of an url on another site? Let's say you wanted to get the output of yahoo.com (just for example)? Is there any way you can stick that into a variable, and then manipulate it? Thanks, Kelly -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] grabbing content of a web page...
fopen('http://www.yahoo.com","r";); ---John Holmes... - Original Message - From: "Kelly Meeks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 27, 2002 3:53 PM Subject: [PHP] grabbing content of a web page... Howdy, I know there has to be a way to grab output of an url on another site? Let's say you wanted to get the output of yahoo.com (just for example)? Is there any way you can stick that into a variable, and then manipulate it? Thanks, Kelly -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] grabbing content of a web page...
File() or fgets() -Original Message- From: Kelly Meeks [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 12:54 PM To: [EMAIL PROTECTED] Subject: [PHP] grabbing content of a web page... Howdy, I know there has to be a way to grab output of an url on another site? Let's say you wanted to get the output of yahoo.com (just for example)? Is there any way you can stick that into a variable, and then manipulate it? Thanks, Kelly -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php