/ Published in: PHP
Expand |
Embed | Plain Text
<?php { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $info = curl_exec($ch); $response = ''; $response .= '' . $video_id . ''; $response .= '' . $tag_t . ''; $response .= ''; echo $response; curl_close($ch); } else { } ?>
Comments
Subscribe to comments
You need to login to post a comment.

Does this still work? I'm getting XML errors.
Works just fine, you just need to look at your URL params. Try something like this: http://localhost/?url=http://www.youtube.com/watch?v=-yg61brmEyo