pecl_http at Dreamhost

pecl_http at Dreamhost

Posted by: AquariusKasuia
Posted on: 2007-03-27 14:14:00

Hi all,
I'm tryng to use the pecl_http extension for php at dreamhost. Sadly it is not avaliable.

I tried to compile it and use it with the dl function.
I was able to compile it ( I had to use my own autoconf, php and curl instalation). Now I have the http.so file.

I placed the http.so in the same directory my script is but I cant use the library classes.

My script is very simple:


GNU nano 1.2.4 File: test.php

<?php
$e = dl("./http.so");

if($e === TRUE)
echo "okay";


$req = new HttpRequest;
?>

The resul Im getting is:

okay
Fatal error: Cannot instantiate non-existent class: httprequest in /home/.mcqueen/hscomputadores/hscomputadores/hscomputadores.com/test.php on line 8

Has someone ever used pecl_http??

Thank you,
Eduardo

Tags: dreamhostfile testavaliableautoconfcurldl