Tizag.com Webmaster Tutorials - A collection of webmaster tutorials from HTML to PHP.

Saturday, November 29, 2008

Php codes in HTML [configure Apache]

For running a PHP script through HTML file we need to configure httpd.conf

1. Open the file in edit mode
2. Search for Adddandler
3. paste the following line. AddHandler application/x-httpd-php .php .htm .html
4. Restart Apache