Forum Moderators: coopster

Message Too Old, No Replies

PHP in HTML pages

         

izahmad

4:56 pm on May 25, 2005 (gmt 0)

10+ Year Member



How can we include a file in regular HTML pages. I know the page has to be a .php extension to use 'include file' code, however I want to include another plain html page in my current html page without making it .php page. This is for my menu as the menu keeps on changing so cant change in all the html pages. OR is there any other way to do it?
Thanks for the help.

bronze

7:45 pm on May 25, 2005 (gmt 0)

10+ Year Member



You can use .htaccess file: [webmasterworld.com...]

jatar_k

8:07 pm on May 25, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld bronze

someone

12:01 am on May 26, 2005 (gmt 0)

10+ Year Member



use server side includes.

check out htmlgoodies for include command.

izahmad

7:54 pm on Jun 4, 2005 (gmt 0)

10+ Year Member



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

This worked!
Thanks