How to show php-files as plain text in Apache

THE ANSWER:

in .htaccess-file type

php_flag engine off 
#This will prevent apache from executing *.php-files

AddType text/plain php
#this wil display php-files in browser (if not, browser will want to download file!)

Thanks to Brad!

Leave a Comment