That works great (although the other suggestions would have worked just as well, but I believe in KISS!) I'll have a look at merlyn's column once my brain has stopped being jelly-like...$num=""; while(-e "$Data/$category/$num$imagename"){ $num++; } $imagename = $num.$imagename;
In reply to Re: uploading a file with the same name
by katgirl
in thread uploading a file with the same name
by katgirl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |