Skip to content

Instantly share code, notes, and snippets.

@nitrix
Created September 29, 2012 20:30
Show Gist options
  • Save nitrix/3805114 to your computer and use it in GitHub Desktop.
Save nitrix/3805114 to your computer and use it in GitHub Desktop.
<?php
$c = curl_init('http://slow.example.com/');
curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
curl_setopt($c, CURLOPT_CONNECTTIMEOUT, 15);
$page = curl_exec($c);
curl_close($c);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment