How To Download PHP File? | Web Design India

How To Download PHP File?

By Rakesh Yadav | Date: October 19, 2011 - 6:30 am

Before we go to download part lets talk about php file itself.

What is a .php file means?
Php files are server side scripting file. They contain the code which will run on the server itself. Whenever server receives a download call for PHP file, it runs the programming code of that file and show the output. They do this because PHP files contain very confidential data which can ruin the Website if some hacker know the inside code. Like the config.php file is created by a Web Developer to access the database, it contains the database’s username and password, if someone download that php file then he ca access the database and get any information he needs from it “Credit Card No.” of users also.
Now you definitely understand the risk of downloading a .php file.

How to download .php file?
First of all it is not recommended that you do this. but if still you want to, then here are the steps:
1. Use you ftp details to log-on to the your server.
2. Open the http.conf file and change search for “AddType application/x-httpd-php .php” it is at about line 386 and 387.
3. Now delete the two lines
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
4. Refresh your server after sometime it automatically will.
5. Access the .php page that you want to download, now it will show you the exact code of that php file you can copy it and paste it to any .txt file and rename it to .php.


Rakesh Yadav

Rakesh Yadav is Founder of having 8 years of website designing and development experience. Currently, he is in love with jQuery and PHP development.

Leave a Reply

Your email address will not be published. Required fields are marked *

CommentLuv badge