KioskeaKioskeaCommentCaMarcheSign up, it's free !
Saturday May 17, 2008 - 6:31:53 pm BST

PHP

Search : in
PHP
par crazy_devil
 Threaded discussions
Statut : Not resolved
Tuesday April 29, 2008 06:20:25 PM
Hello,
i made a download script as:
<?
$file_name = $_FILES['uploadFile1']['name'];
// strip file_name of slashes
$file_name = stripslashes($file_name);
$file_name = str_replace("'","",$file_name);
$copy = copy($_FILES['uploadFile1']['tmp_name'],$file_name);
$copy=move_uploaded_file($_FILES['uploadFile1']['tmp_name'],"../Data/");
// check if successfully copied
if($copy){
echo "$file_name uploaded sucessfully!
";
}else{
echo "$file_name could not be uploaded!
";
}
?>
now i want to change the destination directory and restrict file types too how shall i do that ?
Configuration: Windows XP
Internet Explorer 7.0
Reply to crazy_devil  Report this message to moderators
Currently no message on this subject
Reply
Message title :
Your nick:
Your E-mail :
Message: 
  •  
  •  
Options: Get the answers by mail.
 

Help