I want my HTML pages be parsed by PHP engine. How can I do it?

In order to parse HTML pages by PHP engine, you need to add the following line in the .htaccess file.

=> Clients using PHP 4.x should add the following link in .htaccess file

AddHandler application/x-httpd-php4 .htm .html

=> Clients using PHP 5.x should add the following link in .htaccess file

AddHandler application/x-httpd-php5 .htm .html

The .htaccess file is usually placed under 'public_html' directory of your account. If it is not there you can create one.

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How do I provide streaming - Audio / Video ?

We DO NOT have Real Audio server software running on our servers. However, you can stream Real...

What are some basic software paths?

Sendmail: /usr/lib/sendmailPerl5: /usr/bin/perlServerpath: /home/username/public_htmlRoot path:...

How do I change File Permissions?

If you're new to scripting, or getting the dreaded "Internal Server Error" when you try to run a...

What is SSI (Server side includes) and how can I use it?

Server Side Includes (SSI) is a feature of CGI that enables you to dynamically insert a piece of...

Where do I place CGI scripts?

Although you can place cgi scripts in random directories throughout your site, it's best if you...