<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1042760" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1042760</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Yup, the wildcards will take</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/html-files-saved-php-extention#comment-1237165</link>
    <description> &lt;p&gt;Yup, the wildcards will take any .html file.&lt;/p&gt;
 </description>
     <pubDate>Sat, 17 Jan 2009 15:20:19 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1237165 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Yes, although get the the</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/html-files-saved-php-extention#comment-1237137</link>
    <description> &lt;p&gt;Yes, although get the the feeling that yours also does all PHP files.&lt;/p&gt;
 </description>
     <pubDate>Fri, 16 Jan 2009 21:55:25 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1237137 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>And your method you have to</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/html-files-saved-php-extention#comment-1237135</link>
    <description> &lt;blockquote&gt;&lt;p&gt;And your method you have to add a line for every page you want to parse.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Are you talking about the .htaccess code?&lt;/p&gt;
 </description>
     <pubDate>Fri, 16 Jan 2009 21:20:54 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1237135 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>for clarification, I would</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/html-files-saved-php-extention#comment-1237125</link>
    <description> &lt;p&gt;for clarification, I would like to note that the code&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;RewriteEngine on&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;RewriteCond %{REQUEST_FILENAME} !-f&lt;br /&gt;RewriteCond %{REQUEST_FILENAME} !-d&lt;br /&gt;RewriteRule ^(.*)\.html$ $1\.php [L]&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
belongs in the &lt;a href=&quot;http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html&quot;&gt;.htaccess file&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 16 Jan 2009 18:57:55 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1237125 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>That is true, and there is</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/html-files-saved-php-extention#comment-1237126</link>
    <description> &lt;p&gt;That is true, and there is also a way to make all HTML files parse PHP:&lt;br /&gt;
&lt;code&gt;AddType application/x-httpd-php .php .htm .html&amp;nbsp; &lt;/code&gt;&lt;br /&gt;
(this will vary slightly depending on server software)&lt;/p&gt;
&lt;p&gt;Although there are downsides to both methods:&lt;br /&gt;
Mine makes ALL files are parsed even if they are simple plain old html, which adds server load for no reason in HTML only files.&lt;/p&gt;
&lt;p&gt;And your method you have to add a line for every page you want to parse.&lt;/p&gt;
&lt;p&gt;In summary, there are ways around it, but it&#039;s better practice to use .php for php files and then .html for html only.&lt;/p&gt;
&lt;p&gt;I always use a header and footer file included in pretty much all my sites, as well as always using some other PHP even if just for simple little functionality. so I always use .php anyway.&lt;/p&gt;
 </description>
     <pubDate>Fri, 16 Jan 2009 18:57:00 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1237126 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Also, if you link to a</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/html-files-saved-php-extention#comment-1237123</link>
    <description> &lt;blockquote&gt;&lt;p&gt;Also, if you link to a page(s) with .html, then change it (them) later to .php you have to change all links to that page(s) throughout your site.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;A little rewrite magic could fix that:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;RewriteEngine on&lt;br /&gt;&lt;br /&gt;RewriteCond %{REQUEST_FILENAME} !-f&lt;br /&gt;RewriteCond %{REQUEST_FILENAME} !-d&lt;br /&gt;RewriteRule ^(.*)\.html$ $1\.php [L]&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 16 Jan 2009 18:41:56 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1237123 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>If you might add PHP code in</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/html-files-saved-php-extention#comment-1237118</link>
    <description> &lt;p&gt;If you might add PHP code in the files in the future, as has already been mentioned, then I think it&#039;s a very good idea.&lt;br /&gt;
As usually, when you add PHP to one file, you add it to many as the PHP usually requires various files to function and also offers functionality to multiple files or site wide.&lt;/p&gt;
&lt;p&gt;Also, if you link to a page(s) with .html, then change it (them) later to .php you have to change all links to that page(s) throughout your site.&lt;/p&gt;
 </description>
     <pubDate>Fri, 16 Jan 2009 18:27:48 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1237118 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>As previously stated, having</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/html-files-saved-php-extention#comment-1237117</link>
    <description> &lt;p&gt;As previously stated, having a plain HTML file parsed for possible PHP content will introduce a bit of &#039;unnecessary&#039; load.  &lt;/p&gt;
&lt;p&gt;If you are worried about that difference, why not do a benchmark between the two to see if the overhead is significant enough for you to continue to worry?&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;
Shaggy.&lt;/p&gt;
 </description>
     <pubDate>Fri, 16 Jan 2009 17:55:24 +0000</pubDate>
 <dc:creator>Shaggy</dc:creator>
 <guid isPermaLink="false">comment 1237117 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Saving static files as PHP</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/html-files-saved-php-extention#comment-1237111</link>
    <description> &lt;p&gt;Saving static files as PHP puts an extra load on the server, because it still loads the PHP engine to parse it.&lt;/p&gt;
&lt;p&gt;However, as Kurtis said, I would agree that if there is a change of including PHP in the future, it may be best to do it that way.&lt;/p&gt;
 </description>
     <pubDate>Fri, 16 Jan 2009 14:20:08 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1237111 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Not necessarily.  The file</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/html-files-saved-php-extention#comment-1237108</link>
    <description> &lt;p&gt;Not necessarily.  The file will function just the same with a PHP extension as it would with a regular HTML extension.  One thing I like about automatically creating all files with PHP extensions is that if later you want to add something in PHP to the file, you don&#039;t have to save the file again with the new extension or worry about changing any Apache settings. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 16 Jan 2009 13:18:05 +0000</pubDate>
 <dc:creator>kazimmerman</dc:creator>
 <guid isPermaLink="false">comment 1237108 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
