PHP in a html page


#1

I tried to add php to a webpage of mine so that a rss feed is auto generated on the page. Basically nothing happened. I have added it to www.lgmguild.net/news.html. I used http://guildwars.com/newsarchive/rss/news-current.xml as my rss feed. can anyone tell me how to get this working. I have the template, the php file both on the web server


#2

By default, Apache is not configured to parse PHP code in HTML files. You can either give the file a .php extension, or add the following line to your .htaccess file to allow HTML files to contain php code.

[color=#0000CC]AddHandler php-cgi .html .htm .php[/color]

Mark


Save [color=#CC0000]$50[/color] on DreamHost plans using [color=#CC0000]PRICESLASH[/color] promo code (Click for DreamHost promo code details)