Quote:
Originally Posted by Dachao $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