Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

extracting data from website

Status
Not open for further replies.

rjseals

Technical User
Nov 25, 2002
63
US
Im not sure whether I can do this in php or not. I know it can be done in Perl but don't know it very well and know php a little better so I wanted to see if it could be done that way.

I want to get some stats from espn.com. I will put the team ID's that I want the stats of into an array. The part I am wondering is if I can basically connect to a webpage and extract information.

Should I stick to learning perl or can this be done with php.

Thanks.
 
Use curl to have the PHP script access an external web site.
 
You can also use fopen() to grab a page and then use string functions (str_replace, preg_replace, ereg_replace, substr, etc.) to cut down the returned page to what you want.

***************************************
J. Jacobs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top