It appears the only change you made was :
$tmp .= $chars[mt_rand(0,$chars_len)];
From :
$tmp .= $chars{mt_rand(0,$chars_len)};
Which is strange. the [] use on strings has been depreciated in favor
of {} as of php4 but I don't know at what version {} came into being
exactly. What
Hi Philip,
Yes, I have a choice of PHP3 or 4 and this script happened to be in PHP 3 so
I just tweaked it. I didn't realize that one day
$chars[mt_rand(0,$chars_len)] would no longer work, but at least it is
backwards compatible now. I've made a mental note of that for future
reference.
PHP 3
2 matches
Mail list logo