Thread
:
Web Development: A brief history of time()
View Single Post
01-05-2009, 10:04 AM
#
2
(
permalink
)
CrazeD
Wizard Techie
Join Date: Feb 2006
Location: Maine
Posts: 3,690
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
View Public Profile
Send a private message to CrazeD
Find More Posts by CrazeD