Forum Moderators: phranque

Message Too Old, No Replies

Somtimes PHP scripts are offered for download

         

klantomo

9:43 am on Jul 6, 2005 (gmt 0)



Most of the time everything works fine. But sometimes Apache offers php scripts for download. This happens with different browsers on different machines. It is also independent on the php script. I am using Apache 2, PHP 4.3.3 and SuSE 9.0. This problem drives me crazy because it is very hard to find out what's wrong. Usually it will work again within seconds without changing anything on the server. One has to empty the browser cache before this script works correctly again. As the php script itself can really be downloaded in these cases it must be a server problem. Did anyone experience something similar?

siMKin

9:50 am on Jul 6, 2005 (gmt 0)

10+ Year Member



it usually happens when i try to open the file in a new window. a direct link always gives me the desired result

so,
<a href="script-that-should-initiate-the-download.php">link</a>

coopster

10:27 am on Jul 6, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Also check the short_open_tag [php.net] directive in php.ini and make sure your DTD isn't giving you issues.