Thread Closed 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How To : Use PHP Code in HTML Pages
10-17-2007, 06:04 PM
Post: #1
How To : Use PHP Code in HTML Pages
If you would like to use PHP code in .htm/.html pages without having to change them to .php pages, and your website is running on the Apache webserver, you can do the following...

  1. Create a text file called '.htaccess'
  2. Paste in the following : AddType application/x-httpd-php .php .htm .html
  3. Save the file and upload it to the root/base of your website.

...Apache will then parse .htm/.html files for PHP code.

Matt
http://www.clippersoft.net

ClipperSoft's mySimpleAds :: Power your website advertising with the ease and speed you've always looked for.
Visit this user's website Find all posts by this user
Thread Closed 


Forum Jump: