...

View Full Version : PHP in HTML-- need suggestions



ultranet
01-02-2007, 09:31 AM
Dear members

Actually I am trying to insert a PHP element into my HTML web page and so far I have had little success.

I want to add a RSS reader to my site using PHP code and the vendor is suggesting the following

The want me to modify the htaccess. file with one of the following, which I have no problem with but it doesn't seem to work.

PHP scripts do not automatically work on html pages. If you have an HTML or (.HTM) based site, in order for PHP scripts to run on your .htm or .html pages you have a 2 options;

1. For Apache Servers Edit your .htacess with AddType application/x-httpd-php .htm .html Then Add the php code from the reader directly to your html pages

2. For Apache Servers Edit your .htacess with either .htm server parsed .html server parsed or
Addhandler application/x-httpd-php .html .php Then follow the directions below to use the php code from the reader with SSI Includes.


Now I tried each but the PHP element does not show.

Thanks in advance

Cheers,

felgall
01-02-2007, 10:24 AM
So you must have done something wrong since the instructions are correct. Can you post the code you added to your .htaccess file and the code you added to your page?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum