Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "http://5.79.72.90/");
- curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT ,60);
- curl_setopt($ch, CURLOPT_HEADER, 1);
- $page = curl_exec($ch);
- if (curl_errno($ch)){
- echo curl_error($ch);
- }
- curl_close($ch);
- echo $page;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement