If my ISP tells me that I have the PEAR HTTP package installed, does that mean that the HTTP_Request package is also installed, or is that something else that needs to be added? Depending on the answer to this I will probably have a couple of followup questions.
Thanks! And please forgive me my noobiness.
Yet another n00b question - PEAR packages
Moderator: General Moderators
- Buddha443556
- Forum Regular
- Posts: 873
- Joined: Fri Mar 19, 2004 1:51 pm
I would think only your ISP can tell you want they meant. Don't forget your paying them for a service which includes clarifying their answer when necessary.
However, you could just try including the package in question and see if it works.
... from http://pear.php.net/manual/en/package.h ... .intro.php
However, you could just try including the package in question and see if it works.
Code: Select all
<?php
require_once "HTTP/Request.php";
$req =& new HTTP_Request("http://www.yahoo.com/");
if (!PEAR::isError($req->sendRequest())) {
echo $req->getResponseBody();
}
?>I have code that looks like this:Buddha443556 wrote:I would think only your ISP can tell you want they meant. Don't forget your paying them for a service which includes clarifying their answer when necessary.
However, you could just try including the package in question and see if it works.... from http://pear.php.net/manual/en/package.h ... .intro.phpCode: Select all
<?php require_once "HTTP/Request.php"; $req =& new HTTP_Request("http://www.yahoo.com/"); if (!PEAR::isError($req->sendRequest())) { echo $req->getResponseBody(); } ?>
Code: Select all
echo "before";
require_once 'HTTP/Request.php';
echo "after";My include path, which I got from doing this:
Code: Select all
echo ini_get('include_path');:/usr/share/pear
My ISP support guy told me that he's installed the HTTP_Request package and he's looking to see if something is set up wrong.