Open PHP as a Text File Using .htacess

Place this code in the .htaccess file to disable processing of PHP files in a folder. This will remove the PHP handlers in Apache forcing the browser to load the PHP file as a text file. You can use this to secure folders where upload is allowed to prevent executing uploaded PHP files.

RemoveHandler .php .phtml .php3
RemoveType .php .phtml .php3