I am using this code to write pdf file to the server. It sends the file to a folder called DATA. And I am storing the file name to mysql.
$target = "data/"; $target = $target . basename( $_FILES['file']['name']);
if(isset($_POST['Submit']))
{
{
$path = $_FILES['file']['name'];
}
if(move_uploaded_file($_FILES['file']['tmp_name'], $target))
{
echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded;
}
else
{
echo "Sorry, there was a problem uploading your file.";
}
Now plz can anyone help me to download this pdf file.??