I have link to pdf file created like this
<?php echo '<a href="/test.com'. str_replace('\\', '/', $link).'" TITLE="download" ?>
Can i use this link in following script?
if ($file && is_file($file))
{
header("Content-Type: application/octet-stream");
header("Content-Disposition:$attach filename=\"".$filepath['basename']."\"");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize($file));
fpassthru(fopen($file, "r"));
}
else
{
echo "File not find ($file)!";
}