it means that your current code does not set initial value for the var.
so, as it's empty when you do the magic, there no number.

simple way to change it is to move this line:
$i = $i+1

before the file.move() line.
_________________________
!

download KiXnet