/ Published in: PHP
To use href.in API to generate a short URL. using php curl
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//gets the data from a URL function get_tiny_url($url) { $timeout = 5; return $data; } //test it out! $new_url = get_tiny_url('http://twitter.com/inerds'); //returns http://href.in/gh7uab echo $new_url
URL: http://href.in/api_example.php