View Single Post
  #1   IP: 218.85.132.244
Old 2008-02-04, 10:48 PM
topvip topvip is offline
超级版主
 
Join Date: 2006-01-04
Posts: 1206
topvip 正向着好的方向发展
Default a .htm page that gets content from php.

Technically, this can easily be done with a .htaccess file. You don't even need mod_rewrite. Just say HTML files are PHP.

If that is all, then you can add

AddType application/x-httpd-php .html

to your .htaccess file.

This tells the server to parse your html files for php. Then simply place some php code within your page as you would a normal php file and it will be parsed.
Reply With Quote