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!
More Related Contents:
- Why would $_FILES be empty when uploading files to PHP?
- Error with PHP mail(): Multiple or malformed newlines found in additional_header
- PHP $_SERVER[‘HTTP_HOST’] vs. $_SERVER[‘SERVER_NAME’], am I understanding the man pages correctly?
- Run a php app using tomcat?
- “[notice] child pid XXXX exit signal Segmentation fault (11)” in apache error.log [closed]
- osx 10.10 Curl POST to HTTPS url gives SSLRead() error
- PHP/Apache/AJAX – POST limit?
- How can I relax PHP’s open_basedir restriction?
- PHP Install SSH2 on Windows machine
- What is mod_php?
- How can I use .htaccess to hide .php URL extensions?
- Request Entity Too Large PHP
- Directory index forbidden by Options directive
- Inkscape inside PHP/Apache doesn’t render fonts to PNG
- How to run Laravel without Artisan?
- How do I add paths to the Apache PATH variable?
- What are the proper permissions for an upload folder with PHP/Apache?
- Set an environment variable in .htaccess and retrieve it in PHP
- How to enable gzip?
- RegExp in preg_match function returning browser error
- How to make Apache serve index.php instead of index.html?
- Installing mcrypt extension for PHP on OSX Mountain Lion
- Prevent direct access to a PHP page
- Find out the error_log’s path
- PHP Warning: Unknown: failed to open stream
- Request exceeded the limit of 10 internal redirects
- Reopening a session in PHP
- Routing URLs in PHP
- Tell SELinux to Give Apache Execute Access to PHP Files Outside Document Root
- using mod_rewrite with XAMPP and windows 7 – 64 bit?