Get PHP to parse on local server

/ Published in: PHP
Save to your folder(s)

AddHandler application/x-httpd-php .php .htm ... worked for me (directory: xampp/apache/conf)

Copy this code and paste it in your HTML
  1. Your Apache configuration file, httpd.conf, probably does not allow anything to be overridden in a .htaccess file...
  3. It much easier to find/change the following line in httpd.conf to do this -
  5. AddType application/x-httpd-php .php .html


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.