Total Members: 64

Who's online

There are currently 0 users and 0 guests online.

How to run php code embedded in html pages

Embedding PHP code into html is powerful rule that most programmers use. However, you should configure your server in order to get the benefits of this feature. It will only work if your Apache server has PHP enabled (how to test php support in a apache server) and .htaccess enabled.

In the root directory of your html files create a file named .htaccess (DOThtaccess).

Open the file in your favorite editor (I use notepad) and add the following lines:

addtype application/x-httpd-php .html
addtype application/x-httpd-php .htm

That's it! Now you can run any php code you want in a html pages.

Friends

Cheap Calling Cards

SEO Friendly Web Direcroty

web page hit counter