PHP Short URL Generator


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. //Short
  2. base_convert(rand(),10,36);
  3.  
  4. //Long
  5. echo base_convert(mt_rand(),10,36);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.