The filename has to end in .php unless you are using mod_rewrite

    how do I use mod_rewrite? so there's no way to show RSS content on html page?

      mod_rewrite is only really used to disguise how websites work i.e. hiding variable names in the URL making it more secure.

      You probably can include RSS in an html file but probably not this way.......

        how do I do that then?

          I'm not sure if I've understood your issue correctly, but if you want to be able to access PHP functionality in HTML files on a GoDaddy server, you need to make modifications to your .htaccess file.

          GoDaddy permits this (on Linux hosting accounts) and has a help topic on the subject:

          http://help.godaddy.com/article.php?article_id=1082&topic_id=77&&

          Below is an excerpt from this article:

          By default, files with a .php extension run under PHP 4 and files with the .php5 extension run under PHP 5. The htaccess file, located at the root of your site, can be used to change these default settings. The following entries in a directory's htaccess file designate .php files to run under PHP 5 and .php4 files to run under PHP 4.

          AddHandler x-httpd-php5 .php
          AddHandler x-httpd-php .php4

          Changes made to an existing htaccess file will be seen immediately. When a new htaccess file is created or an existing htaccess file is deleted, however, these changes will not be seen until the htaccess cache is cleared. This occurs every hour.

          I hope this helps.

            Sorry, I forgot to add this above.

            In order to enable parsing of HTML files as PHP, you'll need to add the following or something similar to your .htaccess file:

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

            From what I understand, this should work.

              Write a Reply...