This loop never executes, because of incorrect checking of $current_length. Change the >= to <=:for ($current_length = 1; $current_length >= $length_limit; $curre +nt_length++) { .... }
Or, better yet:for ($current_length = 1; $current_length <= $length_limit; $curre +nt_length++) { .... }
/prakashfor $current_length (1 .. $length_limit) { .... }
In reply to Re: generating random filenames
by PrakashK
in thread generating random filenames
by Amoe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |