How to show php-files as plain text in Apache -


for folder on local apache-server (running ubuntu) i'd *php-files displayed if plain text-files. need since want see source-code of these files , not run them.

while searching, found people have opposite problem :-) , couldn't find solution me.

what need include in .htacces-file of my folder?

thanks!

the answer:

in .htaccess-file type

php_flag engine off  #this prevent apache executing *.php-files  addtype text/plain php #this wil display php-files in browser (if not, browser want download file!) 

thanks brad!


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -