View Single Post
Old 01-05-2009, 10:04 AM   #2 (permalink)
CrazeD
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,690

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: Web Development: A brief history of time()

Actually it's better to use microtime() for random strings, because it is longer.

Code:
<?php

$hash = substr (sha1 (microtime()),0,15);

?>
This creates a 15 character randomly generated string.
__________________

Need website help? PM me!
CrazeD is offline