hi all
i have wrote a code for file uploader and it was working fine but now its getting sme problems...here am attaching my code plz check it out and replay me fast...
if ($_FILES["description"]["error"] > 0)
{
echo "Return Code: " . $_FILES["description"]["error"] . "<br />";
}
else
{
if (file_exists("/upload/" . $_FILES["description"]["name"]))
{
move_uploaded_file($_FILES["description"]["tmp_name"], "/upload/" . $_FILES["description"]["name"]);
echo "Your description has been uploaded: " . "upload/" . $_FILES["description"]["name"];
echo $_FILES["description"]["name"] . "already exists.";
}
else
{
move_uploaded_file($_FILES["description"]["tmp_name"], "/upload/" . $_FILES["description"]["name"]);
echo "Your description has been uploaded: " . "/upload/" . $_FILES["description"]["name"];
}
$des="/upload/" . $_FILES['description']['name'];
}