View Single Post
Old 12-22-2007, 03:29 AM   #8 (permalink)
Wildhoney
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

The best way is to mimic the download process, and load in the file using the header function in PHP. I wrote a little script for someone else on TalkPHP like this not so long ago, but I was unable to find it with a quick search a moment ago. But that way you can then put all the PHP into the download process, so you know when the user is presented with the download prompt, that you can increment the download count, too.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote