assuming that u accept a post field number via the form:

PHP Code: 
$count = (int)($_POST['number']); //changed the value to integer type casted...

for($i 0$i $count$i++){
if (@
write_file($namechr(0), 0)) { 
                    
clearstatcache(); 
                    
printf(lang(381), $html_name); 
                    unset(
$list[$v]); 
                    
$time filemtime($name); while (isset($list[$time])) { $time++; } 
                    
$list[$time] = array('name' => $name"size" => bytesToKbOrMbOrGb(filesize($name)), "date" => $time); 
                }