Re: Renaming .htm pages to .php
| From: | George Patterson | Date: | Mon, 04 Aug 2003 02:37:15 +0000 |
| Subject: | Re: Renaming .htm pages to .php | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-29656@lists.php.net to get a copy of this message | ||
On Sun, 3 Aug 2003 21:58:42 -0400
"Mike Brum" <php@crazyted.com> wrote:
> If you change you Apache configs, it wouldn't create a "problem" with
> .htm pages that don't use any PHP, but the pages will still be sent
> through the PHP parser.
>
> If you don't have a very high-traffic site and there's no other sites
> on the box, then you probably won't see any real performance hit - but
> understand that if you do start getting a ton of traffic, every .htm
> page will be parsed for PHP content. Even if none is found, there is
> some CPU cycles burned in that initial parsing.
>
The other problem with parsing all .htm or .html as php pages is you
lose portability of the site should you change the server that the web
site is on.
I suggest that changing the extension to .php would be the better way to
go. Anything else is a compromise.
George Patterson
> -----Original Message-----
> From: David Blomstrom [mailto:GeoBear@geobop.com]
> Sent: Sunday, August 03, 2003 9:49 PM
> To: php-db@lists.php.net
> Subject: Re: [PHP-DB] Renaming .htm pages to .php
>
> So if I understand you correctly, I can turn a page into a .php page
> through one of two methods:
>
> 1. Change the extension to .php
> 2. Instruct Apache to treat .htm extensions as .php extensions.
>
> That sounds really interesting. Would that create any problems with
> pages that I never use .php functions on? Or if I have websites on my
> computer
>
> that don't use php?
>
> Thanks.
>
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>