Page 1 of 1

Why is my new php script suddenly downloading?

Posted: Thu Aug 13, 2009 9:28 am
by bobmct
:?: I have an Ubuntu server running XAMPP and it has been running just fine. All of a sudden some of my back-end ajax scripts outputting using json-encode are prompting the browser to download the file, which is the program source code, versus the json string.

After a couple of days researching this issue I've finally decided to post this question on this forum. Can anyone please advise why this might be happening?

BTW - all the other php programs function just fine including my other php-ajax back end scripts.

Thanks in advance...

Re: Why is my new php script suddenly downloading?

Posted: Thu Aug 13, 2009 9:47 am
by izzy4505
Apache isn't using PHP to parse your file. Without more information, that's about all I can tell you.