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 :)