| Author |
Message |
rajasekar Forum Regular
Joined: 30 May 2004 Posts: 445 Location: Nothing but Net
|
Posted: Sat Nov 10, 2007 6:12 am Post subject: HTTP Request |
|
|
I am using phplist to send newsletters. if i tried to send a web page, i got the following error:
"Warning: You are trying to send a remote URL, but PEAR::HTTP/Request is not available, so this will fail"
How to check whether my server has HTTP Request mod installed? If not, how to install it there? _________________ Free Online Classifieds - Reach thousands of users world-wide!
[img:0a37bba199]http://www.freelineads.com/banners/banner01.gif[/img:0a37bba199] |
|
| Back to top |
|
| |
pterodactyl Lifeless Fossil

Joined: 23 Jun 2005 Posts: 1472 Location: Ukraine
|
Posted: Sat Nov 10, 2007 8:56 am Post subject: |
|
|
To check whether the PEAR::HTTP_Request package is installed:
| Code: | include 'HTTP/Request.php';
print_r(get_included_files()); |
To inslall the PEAR::HTTP_Request package on your web site:
1. Download the archived package (http://pear.php.net/package/HTTP_Request/download).
2. Unpack the archive (the 'HTTP' directory will be extracted).
3. Make a new directory under your document root on your web site for local PEAR packages, e.g. '/pear'.
4. Upload the extracted 'HTTP' directory with all files contained in the '/pear' directory on your web site.
5. Add the path to your local PEAR packages to the include_path configuration option at the very top of each script.
| Code: | $local_pear = $_SERVER['DOCUMENT_ROOT'] . '/pear';
set_include_path($local_pear . PATH_SEPARATOR . get_include_path()); |
Please note the PEAR::HTTP_Request package requires two other PEAR packages - Net_URL and Net_Socket. You can install them in the same way. Check their dependencies as well, install all required packages, and so on. _________________ ...while pterodactyls flow...
[img:c5ad10a0ae]http://pterodactyl.l2p.net/graphics/signature/groups.jpg[/img:c5ad10a0ae] |
|
| Back to top |
|
| |
|
|
|