tags:

views:

91

answers:

3

Hi,

I have a pdf file on disk that i need to send to a user when they make a request to a php script, what is the best way of doing this?

Thanks

A: 

Is the file going to be put on the server? If not, it isn't possible to send the file.

Best way is to send an email after a request with the pdf as an attachement.

Rick de Graaf
A: 

You can use dompdf if you want them to be able to save/view it. I would reccomend using the 0.6.0 beta version if you do. I had a lot of issues with the stable version. But it is simple to use.

Metropolis
+4  A: 
Adirael
Works in firefox but not IE
Ian morgan
Works for me under IE8/Vista. Do you get an error or it simply loads a white page?
Adirael