Jump to content

Archived

This topic is now archived and is closed to further replies.

KevinHall

class_http.php

Recommended Posts

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

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.