Advertisement
Guest User

Untitled

a guest
Aug 10th, 2016
59,307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None | 0 0
  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);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement