PHP/HTML question.
#7

Quote:
Originally Posted by royal_king
Посмотреть сообщение
exit(); and die(); do the same work they'll kill the process.
Oh ok; btw i've fixed the 'getsize' issue. But now the file don't get moved to another directory :S

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>"
and also tried:

PHP код:
move_uploaded_file($_FILES['pic_map']['tmp_name'],"/httpdocs/MapImages/".$_FILES['pic_map']['name']); 
both don't work
Reply


Messages In This Thread
PHP/HTML question. - by Michael@Belgium - 22.03.2012, 17:49
Re: PHP/HTML question. - by Slice - 22.03.2012, 18:00
Re: PHP/HTML question. - by mevi - 22.03.2012, 18:18
Re: PHP/HTML question. - by XFlawless - 23.03.2012, 02:47
Re: PHP/HTML question. - by Michael@Belgium - 23.03.2012, 16:48
Re: PHP/HTML question. - by royal_king - 23.03.2012, 17:13
Re: PHP/HTML question. - by Michael@Belgium - 23.03.2012, 19:41
Re: PHP/HTML question. - by XFlawless - 24.03.2012, 03:16

Forum Jump:


Users browsing this thread: 7 Guest(s)