I want to upload image to webserver. When I upload one image, variable i will be increased 1. But now the variable i can't be increased. I want to keep uploading many images. What's wrong with my php? Here is my php:
<?php
$i = 0;
$file = "image".$i.".png";
if (move_uploaded_file($_FILES['file']['tmp_name'], "$file" ))
{
$i++;
echo "File uploaded: ".$_FILES["file"]["name"];
}
?>