Download .zip file problem (downloading .php file)?

If you are serving the PHP file with a . Zip extension, getting the PHP source code for download is expected behaviour - ZIP files do not get parsed by the PHP interpreter by default.

If you are serving the PHP file with a . Zip extension, getting the PHP source code for download is expected behaviour - ZIP files do not get parsed by the PHP interpreter by default. You would have to register the ZIP extension to be parsed by PHP.

That is pretty sub-optimal, though; in this case, you can link to the PHP file with the . Php extension. The filename header will provide the correct name to the user who downloads the file.

If you are using a . Php extension and the source code of your PHP file is served, your server configuration is broken.

You are confusing readfile with include. Readfile doesn't try to interpret the file, like include. It just "Reads a file and writes it to the output buffer." – Gerben Jun 19 at 10:12 @Gerben read the comments before downvoting.

The whole PHP source code gets downloaded and is never interpreted in the first place. Probably because he is using the . Zip extension instead of .

Php – Pekka Jun 19 at 10:18 1 sorry, misread it @phpEnthusiast wat is the filename of your php code? – Gerben Jun 19 at 10:22.

I think you are downloading the zip file named as . Php try to open the downloaded file with winzip or winrar.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions