SHARE
TWEET

Untitled

a guest Aug 10th, 2016 35,531 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $c = curl_init();
  2. curl_setopt($c, CURLOPT_URL, $url);
  3. curl_setopt($c, CURLOPT_TIMEOUT, 15);
  4. curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
  5. $content = curl_exec($c);
  6. $status = curl_getinfo($c, CURLINFO_HTTP_CODE);
  7. curl_close($c);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top