1
I downloaded the . exe from the official website, attached the system variable and tested. Everything working.
But when I go in my PHP program it always gives the same error:
Fatal error: Call to Undefined Function curl_init()
My code in the part where it gives the problem:
<?php
$url_recepient = "https://api.pagar.me/1/recipients";
$ch = curl_init();
curl_setopt( $ch, CURLOPT_URL, $url_recepient);
curl_setopt ($ch, CURLOPT_POST, 1);
?>
And now I don’t know if it’s my code error or I didn’t install it right.
Then, in the 7xx version I used, I searched for Curl in php.ini file, it appeared ;Extension=Curl , I just removed the dot and comma and restarted the local server
– Gilberto Leandro