Why is my PHP files opening as downloadable files?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • boredism
    New Member
    • Apr 2012
    • 2

    Why is my PHP files opening as downloadable files?

    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?
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    what server are you using? check the server settings if they are alright

    Comment

    • boredism
      New Member
      • Apr 2012
      • 2

      #3
      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.

      Comment

      Working...