Hi
This script is just what i was looking for and i it's working great except a few things. When i put a .doc on the server and try to download it with the script it seems to get corrupted in some sort of way. When i choose to open it in Microsoft Word after downloading it through the script i get an error message saying that Word needs a converter to open the document. When i download the file by typing it's direct url it works all good so it seems like the script in some way modifies the file.
When i do the same thing with a .pdf file it works without any corruption but when a user is closing the file the application used to open it prompts for saving or cancel. I don't know but maybe this is related somehow.
Im running FreeBSD 5.3-RELEASE and Apache 1.3 and php4.
Does anyone have any ideas how i can solve this?
I am really looking forward to an answer since this script seems to be just what i need

.
Regards
Kristian