23.03.2012, 19:41
Quote:
exit(); and die(); do the same work they'll kill the process.
|
I've this:
PHP код:
$upload_dir = '/MapImages';
$tmp_name = $_FILES['pic_map']['tmp_name'];
$name = $_FILES['pic_map']['name'];
move_uploaded_file($tmp_name,"$upload_dir/$name");
echo "Image ". $_FILES['pic_map']['name'] ." uploaded successfully.<br>";
PHP код:
move_uploaded_file($_FILES['pic_map']['tmp_name'],"/httpdocs/MapImages/".$_FILES['pic_map']['name']);