PHP files showing as text in Internet Explorer
Posted on 2006-11-24
I have moved a folder containing php scripts from one server to another and on the same day my Internet Explorer upgraded to v7 as part of a Windows update. Before moving it, it worked fine but now, when I click a "login" button having entered my username and password, the next thing to display in my browser is the raw php code as a text file! Very annoying and not very secure either! (not that passwords are contained in it).
Both servers are PHP enabled and nothing has changed recently regarding that. The server the files are currently on is definitely PHP enabled because it has a script that is scheduled to run every Monday morning which emails our customers. This works, because undeliverable ones come to me, and customers often call about the mails we're sending.
I'm sure I've seen this before but can't remember what to do. I'm also wondering if it's anything to do with the IE upgrade. To be sure, I installed FireFox 2 and that does a similar thing although doesn't show the entire code.
Thanks in advance