Need help... http headers
Posted: Fri Oct 11, 2002 8:24 am
This is the story:
I´ve created a getFile.php document that fetches a file and gets som filerelated stuff from the db.
It then make a header with content-type and so on.
So far so good.
Everything is working fine until I release it on the liveserver.
When I click on the link "download file" that links to the getFile.php document it trys to download the .php dokument instead of the file, if I choose to "open the file" it then ask to download the correct-file.
I suspect that the getFile.php (without header) is handled like an "unknown" file on the liveserver.
So, what can I do?
Can it be made som easy server confs. or do someone have a good solution?
Regards
Mikael Hellman
I´ve created a getFile.php document that fetches a file and gets som filerelated stuff from the db.
It then make a header with content-type and so on.
So far so good.
Everything is working fine until I release it on the liveserver.
When I click on the link "download file" that links to the getFile.php document it trys to download the .php dokument instead of the file, if I choose to "open the file" it then ask to download the correct-file.
I suspect that the getFile.php (without header) is handled like an "unknown" file on the liveserver.
So, what can I do?
Can it be made som easy server confs. or do someone have a good solution?
Regards
Mikael Hellman