|
|
Parsing .html files for php code
I use Server Side Includes for this. Put the following in your .html file: <!--#config timefmt="%d/%m/%Y" --> Last modified at <!--#echo var="LAST_MODIFIED" --> The first bit defines the format for the date. AddType text/html .html AddHandler server-parsed .html Perhaps you should load the SSI module explicitly as well. ---
Parsing .html files for php code
In order to save load on your server, you could rename your .html files to .php files, and nest your php code in there.
Parsing .html files for php code
I could have done that. However, I would have had to have changed all of the links in my pages that refered to the renamed files. Granted I only have a hundred page site, but I didn't want to check all the pages manually (not all .html references would need to be changed to .php). |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.06 seconds |
|