I just installed pecl_http with the default options and added the line “extension=http.so” to my active php.ini configuration file, but when I run my script I’m still getting
Call to undefined function http_post_fields()
Any ideas on what I can check to fix the problem?
Here’s the code:
$url = "http://localhost/elistings/public/dynamicSearch.php";
$data = array("phone_number" => "",
"business_name" => "name",
"business_address" => "my address",
"city_and_state" => "city, CA",
);
$response = http_post_fields($url, $data);
echo $response;
After verifying that pecl_http was successfully installed, have you tried this?