24.03.2012, 03:16
PHP код:
$filename = $_FILES["pic_map"]["name"];
$filetmplocation = $_FILES["pic_map"]["tmp_name"];
$path = "MapImages/".$filename;
$result = move_uploaded_file($filetmllocation, $path);
if ($result == true) {
echo "File has been moved from " . $filetmplocation . " to" . $path;
} else {
echo "ERROR: File not moved correctly";
}