  | 
                       | 
          
            
               
                 Code (PHP) 
อันนี้ที่ผมใช้อยู่ โอกาสซ้ำน้อยมากครับ การใช้เวลาผมทดลองแล้วครับ มันซ้ำกัน 
$abc= array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"); 
$num= array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
$no=15;
while($no >=0)
{
$a=$a."".$abc[rand(0,25)]."".$num[rand(0,9)];
$no=$no-1;
}
$rand=rand(1000000000000,9999999999999);
$filename=$a."".$rand."".$_FILES['userfile']['name'];
                        
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2011-05-27 17:57:50 | 
                        By :
                            mangkunzo | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             |