Jump to content


Photo

class_http.php


  • Please log in to reply
No replies to this topic

#1 KevinHall

KevinHall
  • New Members
  • Pip
  • Newbie
  • 9 posts

Posted 20 February 2006 - 03:31 PM

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
Kevin Hall

Chief Cook and Bottle Washer for [a href="http://www.kevona.co.uk/" target="_blank"]Kevona[/a]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users