NogDog wrote:You might want to try this for some debugging right after you define $filepath:
$filepath = $path . $name;
if(!is_readable($filepath))
{
die("$filepath does not exist or is not readable");
}
Tried it and all seems good.
I even went down and added
$filepath = $path . $name;
if(!is_readable($filepath))
{
die("$filepath does not exist or is not readable");
}
else
{
echo "$filepath does exist and believe it or not, it's readable"
}
I get the message that it exists and is readable.
Could it be a problem with my download link code?
echo "<a href=download.php?id={$uploads['id']}>
{$uploads['title']}<br />
</a>";
Reason I ask is that, if I upload a word doc (or txt for that matter) then go to download it, what I get is a file named correctly; however, it only has the three html head tags to the download.php file itself within it.