$connection = curl_init();
curl_setopt($connection, CURLOPT_URL, "https://duckduckgo.com/");
curl_exec($connection);
curl_close($connection);
This part of code return null on my wamp server. Work only if CURLOPT_URL is localhost resource. How to make curl work for web sites? file_get_contents() work well.