It seems that you have two problems:
If you want to have a regular HTML link to your pdf file, you need to write
the link as:
print "$pdf[$i]";
This should open Acrobat and download your pdf file if the browser has been
configured for.
Second, if you want PHP to download the file, you need to send
I'm creating a Content Management system in which the user will have to
attach a pdf document to an article. This is no problem, I copy the document
to a specific pdf folder and store the document name in the DB to use on the
front end.
On the front end I loop through all documents that are onlin