By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,373 Members | 1,792 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,373 IT Pros & Developers. It's quick & easy.

Why is my PHP files opening as downloadable files?

P: 2
I have set up a website with apache and php working and everything. It was working fine for the last two years without problem. The only things that ever changed on the site were some of the pictures, none of the script.

Recently though the php files are opening up as downloadable files, I even tried opening a basic hello world php file and it still doesn't open properly. I tried it on IE, Chrome, Firefox, of ancient versions of those as well. It just doesn't seem to work.

Any possible solutions to get my php working again?
Apr 24 '12 #1
Share this Question
Share on Google+
2 Replies


100+
P: 1,059
what server are you using? check the server settings if they are alright
Apr 24 '12 #2

P: 2
Okay, after a night of searching my cousin found the problem! Yay!
The problem was my htaccess and server script got deleted.
So I replaced them and it all works now.
Apr 24 '12 #3

Post your reply

Sign in to post your reply or Sign up for a free account.