sdchakqj10 Posted December 4, 2007 Share Posted December 4, 2007 I have never done this before, am quite new to php, but pick up fast. I want to, using a php file, load an html page, scrape some content from different tags with certain IDs and load the content into variables in the php file. Do i need to use javascript for this? Is there a topic where this has been answered already? I've searched the forum and found nothing. Please help. Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted December 4, 2007 Share Posted December 4, 2007 There are two parts to this. The first it grabbing the content. Hopefully it'll be a simple matter of using the file_get_contents() function. Then, you'll need to be using regular expressions to find your matches. There is a subforum here which might help you. Otherwise, come back with some sample data that you've managed to grab, and tell us what you're trying to retrieve. Quote Link to comment Share on other sites More sharing options...
freakstyle Posted December 4, 2007 Share Posted December 4, 2007 Since you're new you may want to leverage an existing code base to assist you. tip: google 'screen scraping + php' see: http://www.tgreer.com/class_http_php.html good luck Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.