
php uploader with name change
By: a guest on
Aug 22nd, 2012 | syntax:
PHP | size: 0.33 KB | hits: 11 | expires: Never
<?
if (isset ($_FILES['files']))
{
$_FILES['files'];
foreach ($_FILES['files']['tmp_name'] as $key => $tmp_name){
$tmp_name = $_FILES['files']['tmp_name'][$key];
$ran = rand(1,2); // instead of 2 put a the limit of the images ****** HERE
move_uploaded_file($tmp_name, "./images/$ran.jpg");}
}
?>