Ben şu PHP kodu:
$curl = curl_init();
curl_setopt ($curl, CURLOPT_URL, $URL);
curl_setopt ($curl, CURLOPT_RETURNTRANSFER, true);
$html = curl_exec ($curl);
echo $html;
aşağıdaki sonuç whith:
Tamam "http://www.google.com" gibi bir $ URL için
Bir $ "http://localhost/index.html" gibi URL, ve dönen bool (false) için KO Ben bir var_dump yaptığınızda
and this even though the browser can display http://localhost/index.html with no problem. I am running a xampp apache server on the localhost.
Ben sorunun ne olduğunu çözemiyorum. Herhangi bir yardım çok takdir.