Page 1 of 1

geting information from websites.

Posted: Thu Nov 07, 2002 11:25 am
by penguinboy
well, im trying to make a script that will pull information from a website

so lets say the page i want to pull is

http://www.globeandmail.com/servlet/Art ... mp/4/4/25/

and i wanted to pull out

"Father files suit after son fails to win MVP award"

how would i go about doing that?

(i'm not trying to steal anything from this site, i'm just using it as an example...)

Posted: Thu Nov 07, 2002 12:34 pm
by PaTTeR

Code: Select all

$string = implode('',file('http://some.com');
Now $string is HTML code of wanted site.
You can get what you need ;-)

Posted: Thu Nov 07, 2002 12:35 pm
by PaTTeR

Code: Select all

$string = implode('',file('http://some.com'));
OOpS i miss the last )