View Single Post
  #5 (permalink)  
Old 07-31-2008, 10:57 AM
Sakari Sakari is offline
Rookie
 
Join Date: Jul 2008
Posts: 41
Sakari is on a distinguished road
Quote:
Originally Posted by Dachao View Post
$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.
dacheo , thanks I have try this. I running correct and perfect.

______________________________________
web design company
free templates

Reply With Quote