I'm trying to get data from external website using cURL
in PHP but it's not working.
CURL is enabled in phpinfo()
.
My test code is not working in CentOS 8/nginx server
where the $result=FALSE
, but works fine in Debian9/nginx
.
$ch=curl_init ("http://somogyivakok.hu/");
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
$result=curl_exec ($ch);
curl_close ($ch);
Do you have any idea what is wrong?
cURL Version is 7.61.