$filename="/data/base_file."; $x=0; $x++ while (-e $filename.$x); $realfile=$filename.$x; [download]
In reply to Re: Unique filename by shelob101 in thread Unique filename by tachyon