Pages

Sunday, June 9, 2013

PHP-How to generate Youtube like video url's



 <?php  
 $encoded=base64_encode(Uniqid().$myVideosValue['Uservideo']['id']);  
 ?>  


and then send this along with URL and at receiving end decode it as follows

 <?php  
 $decoded= substr(base64_decode($paramstr),13);  
 ?>  




No comments:

Post a Comment