KevinHall Posted February 20, 2006 Share Posted February 20, 2006 I want to extract information from another web site, so I hunted the internet and found class_http.php, which appears to do what I want, but I can't get the example that's included with it to work.I'm very new to php and don't understand what I need to change to make it work on my server.The bits I don't understand are:-[!--coloro:#FF6666--][span style=\"color:#FF6666\"][!--/coloro--]"To use the class in your scripts, you first need to include the class file. Modify the path to fit your needs.require_once(dirname(__FILE__).'/class_http.php'); "[!--colorc--][/span][!--/colorc--], I don't understand how to point it to my directory.[!--coloro:#FF6666--][span style=\"color:#FF6666\"][!--/coloro--]"Instantiate a new http object. You can create one object and use it over and over again throughout your script, or you can create multiple objects as needed. $h = new http(); "[!--colorc--][/span][!--/colorc--], do I need to change this at all, if so how?[!--coloro:#FF6666--][span style=\"color:#FF6666\"][!--/coloro--]"$h->dir = "/home/foo/bar/"; "[!--colorc--][/span][!--/colorc--], is used to place a cashed version of the extracted data into a directory, but how?Any help would be greatfully received.Thanks in advance.Kevin Hall 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.