View Single Post
  #4 (permalink)  
Old 07-23-2008, 10:14 AM
Dachao Dachao is offline
Rookie
 
Join Date: Jul 2008
Posts: 10
Dachao is on a distinguished road
$fileName = $_FILES['userfile']['name'];
$tmpName = $_FILES['userfile']['tmp_name'];
$fileSize = $_FILES['userfile']['size'];
$fileType = $_FILES['userfile']['type'];

$filePath = $uploadDir . $fileName;

$result = move_uploaded_file($tmpName, $filePath);
if (!$result) {
echo "Error uploading file";
exit;
}
this coding are require at top of php program.

__________________
web design
Free Templates

Reply With Quote