Jump to content



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
Link to comment
Share on other sites

This thread is more than a year old.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

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.