RE: [PHP] grabbing content of a web page...

2002-06-27 Thread Demitrious S. Kelly
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

Re: [PHP] grabbing content of a web page...

2002-06-27 Thread 1LT John W. Holmes
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

Re: [PHP] grabbing content of a web page...

2002-06-27 Thread B i g D o g
You can also do this: ?php // get a web page into an array and print it out $fcontents = file ('http://www.example.com/'); while (list ($line_num, $line) = each ($fcontents)) { echo bLine $line_num:/b; , htmlspecialchars ($line), br\n; } // get a web page into a string $fcontents = implode