Welcome Guest, Not a member yet? Register   Sign In
Problems with captcha due to microtime() php funcion
#3

[eluser]Ravnock[/eluser]
Another solution (maybe a little better)

Use time() function to retrieve the $sec variable and mt_rand() to generate $usec variable

Code:
$sec = time();
$usec = mt_rand(0,99999999);
$usec = $usec/ 100000000;

echo "SEC ".$sec." USEC ".$usec;

Collateral problems? Someone knows?


Messages In This Thread
Problems with captcha due to microtime() php funcion - by El Forum - 01-11-2008, 04:10 AM
Problems with captcha due to microtime() php funcion - by El Forum - 01-11-2008, 04:27 AM
Problems with captcha due to microtime() php funcion - by El Forum - 01-11-2008, 04:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB