Hello!

I want to create HttpRequest, but I received this error message,

Fatal error: Class 'HttpRequest' not found in C:\xampp\htdocs\cw1\index.php on line 41

I wrote this line of code:

$request = new HttpRequest($url, HTTP_METH_GET);

I have PHP Version 5.3.1.

How I can solve this problem?

Thank you very much!

    Incidentally, I note that the *.dll file isn't currently available for Windows, at least according to THAT particular page (which isn't to say you couldn't find one elsewhere ... you might try Google), but if it's true, you're going to have to find another way to do what you want.

    I'd guess there are a few.

      For example, there's a PEAR package called HTTP_Request2 (which supersedes PEAR package HTTP_Request) that you could use as an alternative.

        Write a Reply...