I've got aproblem with my php cUrl. It doesn't output anything so whenever i run this it will return: "didnt work"
$curl = curl_init();
$url = "https://www.google.com/";
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($curl);
curl_close($curl);
if ($result === FALSE) {
print "didnt work!";
} else {
print "worked!";
}
I've searched countless tutorials etc. and no sulotion worked for me. Thx for the help in advance :)
https, both the environment (CA certs), and the curl call itself.curl_setopt($curl, CURLOPT_HEADER, 1);and see the exact output withecho "<xmp>$result</xmp>";. What do you see ?