Revision: 9408
                            
                                                            
                                    
                                        
Initial Code
                                    
                                    
                                                            
                                    
                                        
Initial URL
                                    
                                    
                                
                                                            
                                    
                                        
Initial Description
                                    
                                    
                                
                                                            
                                    
                                        
Initial Title
                                    
                                    
                                                            
                                    
                                        
Initial Tags
                                    
                                    
                                
                                                            
                                    
                                        
Initial Language
                                    
                                    
                                                    
                        at November 4, 2008 04:24 by liuran
                            
                            Initial Code
/**
 * get a hashed subdir.
 *
 * @author liuran
 */
function getHashedDir ()
{	
	$key_1 = rand (32768, 65535);
	$key_2 = microtime ();
	$key_3 = sha1 (time ());
		
	$sid = md5 ($key_1 . $key_3 . $key_2);	
	$hash_dir = substr ($sid, 0, 2) . '/' . substr ($sid, 15, 2) . '/';
	return $hash_dir;
}
                                Initial URL
Initial Description
Initial Title
Get a Hashed SubDirectory
Initial Tags
Initial Language
PHP