Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Download this file to your WordPress install and name it test.php
- // and then access it via test.php?type=vimeo
- if ($_GET['type']=='vimeo') {
- $url = "https://vimeo.com/api/oembed.json?url=https%3A//vimeo.com/76979871";
- } elseif ($_GET['type']=='youtube') {
- $url = 'http://www.youtube.com/oembed?url=http%3A//youtube.com/watch%3Fv%3DM3r2XDceM6A&format=json';
- } else {
- die('Must specify type: vimeo/youtube');
- }
- echo "<pre>";
- echo "Source IP: " . file_get_contents('https://api.ipify.org') . " (where the script is being called from)\n";
- print_r(get_headers($url));
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement