Mega Code Archive

 
Categories / Php / Code Snippets
 

Grab a web page with cURL

<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://example"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_exec($ch); curl_close($ch); ?>