Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Create a curl handle
- $ch = curl_init('http://www.yahoo.com/');
- curl_setopt($ch, CURLOPT_NOBODY , true);
- curl_exec($ch);
- $info = curl_getinfo($ch);
- echo $info['http_code'];
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement