Hi guys i am having some problem getting the HttpRequest function to work. below is the code ...

$r = new HttpRequest('http://localhost/test/shamly/', HttpRequest::METH_GET);

the problem is that i am getting the following error Fatal error: Class 'HttpRequest' not found in

I have downloaded the php_http.dll file and added it to the ext directory. The php version is 5.2.1. I get a similar error for http_get() as well.

Fatal error: Call to undefined function http_get()

From what i have read hash, iconv and spl are compiled by default in PHP 5.2.1. These libraries are required for HttpRequest to function.

Am i missing something here ...

    add the following to your php.ini

    extension = php_http.dll
    
      3 years later

      where did you downloaded the dll? i cant seem to fix this 🙁

        This was a loong time ago .. so i cannot remember from where I downloaded the file. But from what I hear, the HTTP extension has been moved to PECL, it is called pecl_http. try this link out and see

        http://pecl.php.net/package/pecl_http

        Remember that this links to a page with tar files for download. I am not sure if there are any Windows binaries available for download.

          Write a Reply...