oxhak

PHP Shorturl with YOURLS

Dec 19th, 2012
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.19 KB | None | 0 0
  1. <?php
  2. $id = "XXXXXXXX";
  3. $url = "http://XXXXXXXX";
  4. $result = file_get_contents('http://XXXXXXXX/yourls-api.php?signature='.$id.'&action=shorturl&format=simply&url='.$url.'');
  5. echo $result;
  6. ?>
Advertisement
Add Comment
Please, Sign In to add comment