(less or equal instead of greater or equal).... $current_length <= $length_limit; ...
Greetings
Andreas
Addendum: a walkthrough in the debugger or a print statement inside the loop helps finding such problems. :-)
Have fun ...
In reply to Re: generating random filenames
by atl
in thread generating random filenames
by Amoe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |