My simple code is:
<?php
if(isset($_REQUEST['submit']))
{
$t = time();
if ($_FILES['image']['name']!="")
{
$target1 = "bannerImage/".$t.$_FILES['image']['name'];
if (move_uploaded_file($_FILES['image']['tmp_name'],$target1))
{
}
}
}
?>
I don’t know why it doesn’t work in Godaddy Server, but it works fine on my localhost
source
share