RE: [PHP] Php files with .html extension?
| From: | Gryffyn, Trevor | Date: | Mon, 25 Oct 2004 15:47:53 +0000 |
| Subject: | RE: [PHP] Php files with .html extension? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-200262@lists.php.net to get a copy of this message | ||
That's definitely a good point. I'm curious though, would it really be
a significant performance issue? Even if a lot of HTML files are being
processed by PHP? I mean, if the PHP parser goes through and never sees
a <? Or <?php, does it do any more than just output the file? True,
that's something, but is it anything really significant.
The only thing I can think of that'd be an issue is, what happens if you
have a bad compile of PHP, or what happens to a system after PHP is run
180,000 times? Small programming issues can create minute instability
issues for systems. Or in the case of outright memory leaks, sometimes
a major issue.
That's the only thing that'd really concern me, but it's still
definitely a good question to ask.
-TG
> -----Original Message-----
> From: Graham Cossey [mailto:graham@cossey.plus.com]
> Sent: Monday, October 25, 2004 11:30 AM
> To: php-general@lists.php.net
> Subject: RE: [PHP] Php files with .html extension?
>
>
> Do not forget that if you do this ALL files with the .html
> extension will be
> parsed by PHP whether they are PHP scripts or not which could
> be something
> you need to consider from a performance perspective.
>
> > -----Original Message-----
> > From: Jay Blanchard [mailto:jay.blanchard@niicommunications.com]
> > Sent: 25 October 2004 14:59
> > To: php-general@lists.php.net
> > Subject: RE: [PHP] Php files with .html extension?
> >
> >
> > [snip]
> > How can i do a php script with a html extension....such as
> >
> > http://www.blinds-wise.com/shop/p/blind/bid/1/venetian_blinds.html
> > [/snip]
> >
> > You set it up in your httpd.conf You should have
> >
> > AddType application/x-httpd-php .php
> >
> > change it to
> >
> > AddType application/x-httpd-php .php .html
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>