Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-02-2007, 09:31 AM   PM User | #1
ultranet
New to the CF scene

 
Join Date: Dec 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
ultranet is an unknown quantity at this point
PHP in HTML-- need suggestions

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,
ultranet is offline   Reply With Quote
Old 01-02-2007, 10:24 AM   PM User | #2
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,447
Thanks: 0
Thanked 496 Times in 488 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
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?
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:10 PM.


Advertisement
Log in to turn off these ads.