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 Link to comment https://forums.phpfreaks.com/topic/3488-class_httpphp/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.