| 
 Posted by bjkstudio on 06/15/83 11:49 
Is this how my uploader.php file should look? Does the function spcript 
go directly beneath the 
php code? Thanks 
----------------------------------- 
 
 
 
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; 
charset=ISO-8859-1"> 
<title>Untitled Document</title> 
</head> 
// Where the file is going to be placed 
$target_path = "uploads/"; 
 
/* Add the original filename to our target path. 
Result is "uploads/filename.extension" */ 
$target_path = $target_path . basename( 
$_FILES['uploadedfile']['name']); 
$_FILES['uploadedfile']['tmp_name']; 
 
$uploaddir = './dir/'; 
$file_name = $_FILES['userfile']['name']; 
$uploadfile = $uploaddir . $file_name; 
move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile); 
<body> 
</body> 
</html>
 
[Back to original message] 
 |