geting information from websites.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
penguinboy
Forum Contributor
Posts: 171
Joined: Thu Nov 07, 2002 11:25 am

geting information from websites.

Post 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...)
User avatar
PaTTeR
Forum Commoner
Posts: 56
Joined: Wed Jul 10, 2002 7:39 am
Location: Bulgaria
Contact:

Post 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 ;-)
User avatar
PaTTeR
Forum Commoner
Posts: 56
Joined: Wed Jul 10, 2002 7:39 am
Location: Bulgaria
Contact:

Post by PaTTeR »

Code: Select all

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