Posted By

the_coder on 12/05/08


Tagged

url php String twitter Shortening


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

ginoplusio
jamesming
rickfu


URL Shortening for long URLs


 / Published in: PHP
 

  1. $long_url = "http://www.google.com/?q=oh+hai";
  2. $short_url = implode('',file("http://to.m8.to/api/shortenLink?url=$long_url"));

Report this snippet  

You need to login to post a comment.