FN-FORUM: PHP/PDF problem
date posted 9th January 2004 21:34
Hey all,
I've got an problem on a clients site that is driving me a little nuts. They
have their site set up so that files with a .pdf extension are executed as
.php. The php file has some code in that spits the pdf out to the browser.
This part works fine.
The .pdf php file also has some logging in, so that each download is
recorded - the problem is each download is recorded twice and I can't for
the life of me see why. Oddly, if the pdf link is clicked and acrobat is
closed as soon as it opens, only 1 hit is recorded.
(If I put the code from the .pdf file into a .php file the same thing
happens)
Example code: