“PHP Fatal error: Class 'HttpRequest' not found”
I've been stuck trying to solve this problem in many ways, reading a lot of posts but still having no luck. I work on a Mac, OSX 10.7 Lion, and I'm writing a plugin for a WordPress site (php files) using MAMP, and at one point I have to make an HTTP request: $request = new HttpRequest('something'); $request->setMethod(HTTP_METH_GET); There's an error when executing this request and when I checked the log file, here's the message: "PHP Fatal error: Class 'HttpRequest' not found in (the_php_file)" I've already installed PEAR, PECL and the HTTP extension (pecl_http), Xcode and its command line