Generating an ID with microtime()
<?php list($microseconds,$seconds) = explode(' ',microtime()); $id = $seconds.$microseconds.getmypid(); ?>