How do I stop downloading a PHP file that isn't supposed to be PHP?

October 18, 2011 – 4:24 pm

I’ve been trying to download a file for a while now and instead of downloading the file I want I keep getting a PHP file. I’ve read that it could be a browser issue so I’ve tried on other browsers and I still have the problem. Is there anything that I can do to fix that?

Related posts:

  1. why is my music downloading as php format which I cannot play?
  2. How do you download a .php file from its location using the browser address bar?
  3. Im trying to configure Apache and PHP but my browser just ask me if i want to download the file.?
  4. How can i download a file by opening multiple connections to the server using PHP?
  5. How to stop everything I download from being saved as a PHP file on my mac?
  6. How can I download a PHP file from website?
  7. How do I prevent or allow people to download a file, using PHP?
  8. how do you install programs on a computer running on ubuntu linux?
  9. help downloading programs in fedora 11?
  10. Computer Downloading Problem!?
  1. 2 Responses to “How do I stop downloading a PHP file that isn't supposed to be PHP?”

  2. There are over 250 millions domains on the web.
    Maybe you could point us in the right direction?
    Please, read the advices on HOW to ask a question!

    By just "JR" on Oct 18, 2011

  3. Layman’s » TRANSLATION » Jargon.
    (I’m going to make a few assumptions)

    The file you are referring to is (probably) acting as pipe to stream data to you and has likely not had all the necessary headers set to tell your browser what to do with that data. This negligence (for lack of a better word) on the programmers part usually occurs when for whatever reason the file in question was never intended to be accessed directly. (I find this happens a lot when saving images off of a page when they have been passed through a thumbnail or tracking script).

    There is no "fix" on your end as there is nothing wrong with the browser but (assuming everything else is okay at the file’s source) when you are saving the file – if you just rename it from the PHP file to the file type that you were expecting to see – it should still save and work as normal.

    By Emissary on Oct 18, 2011

Sorry, comments for this entry are closed at this time.