Advertisement
nwalker78

curltest

May 29th, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. <?php
  2.  
  3. $ch = curl_init();
  4. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  5. curl_setopt($ch, CURLOPT_URL, 'http://google.co.uk/');
  6. $res= curl_exec($ch);
  7. curl_close($ch);
  8. echo $res;
  9.  
  10. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement