Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ch = curl_init('http://t.co/4iO338e');
- curl_setopt($ch, CURLOPT_HEADER, 1);
- curl_setopt($ch, CURLOPT_NOBODY, 1);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- preg_match("#Location: (.*)\r\n#", curl_exec($ch), $result);
- dump($result[1], curl_getinfo($ch));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement