
2 Jun
2009
2 Jun
'09
10:43 p.m.
Hi guys and gals. Having a problem with access kenya hosting services (again). I have this script that automatically downloads a PDF file when a link is clicked. It works on all my testing servers but not on Access Kenya's. Please find the script below: <?php $filetodownload = $_GET['filedownload']; header('Content-type: application/pdf'); header('Content-Disposition: attachment; filename='.$filetodownload); readfile($filetodownload); ?> Script is simple enough. Any work around apart from pointing the script to another server that can handle? Or anyone from Access Kenya who can explain this? Regards, .jmg