for a certain folder on my local Apache-Server (running with Ubuntu) I'd like that all *php-files will be displayed as if they were plain text-files. I need this since I only want to see the source-code of these files and NOT run them.
While searching, I found that most people have the opposite problem :-) and couldn't really find a solution for me.
What would I need to include in the .htacces-file of my my folder?
in .hatcces-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!
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki