Simple PHP cURL example

Grab a webpage and display it:

$curl = curl_init('http://domain.com');
curl_exec($curl);
curl_close($curl);
Snippets and tagged