Re: PHP-Yes, HTML-No --- Why?
- From: "d" <d@xxxxxxxxxxx>
- Date: Thu, 26 Jan 2006 17:17:48 GMT
|
It may be by design, but that doesn't mean it's
necessarily good. Surely a dynamic web server should appear exactly the
same as a static one - all files that contain HTML when viewed should be called
..html. If you want them called any number of things, then be my
guest. I just happen to think presentation matters.
As for performance, the numbers are easy to
compute. If you know how, say, the PHP apache module works, you'll see
that the hit is absolutely, positively minimal. If it was otherwise, the
inherent overhead of processing dynamic PHP files would stop people from using
PHP on any old webserver.
My scheme doesn't prevent anyone from using more
than one technology. It's not as if extensions are the only way of
determining what's in a file.
Your points aren't exactly showstoppers. If
you're confused by having php in html files, you probably shouldn't be anywhere
near a computer in case you look at it funny and choke yourself to death.
And as I said earlier, it doesn't stop anyone from using multiple technologies
at once, and if a web server struggles because it has to check html files for
php when there necessarily isn't any, then it's not going to be very good at
running any complex php, as that requires a LOT more work then just checking for
"<?php" in a file.
Just because it's the "done thing" doesn't
automatically make it the best thing.
If you don't want to take pride in your work and
have messy URLs with weird extensions that don't match the content and query
strings unreadable to humans stretching from here to the moon, then be my
guest.
I'll get back to you with some
statistics.
|
- Follow-Ups:
- Re: PHP-Yes, HTML-No --- Why?
- From: Andrew DeFaria
- Re: PHP-Yes, HTML-No --- Why?
- From: Gordon Burditt
- Re: PHP-Yes, HTML-No --- Why?
- References:
- PHP-Yes, HTML-No --- Why?
- From: Lennart Björk
- Re: PHP-Yes, HTML-No --- Why?
- From: Barry
- Re: PHP-Yes, HTML-No --- Why?
- From: Lennart Björk
- Re: PHP-Yes, HTML-No --- Why?
- From: Barry
- Re: PHP-Yes, HTML-No --- Why?
- From: Lennart Björk
- Re: PHP-Yes, HTML-No --- Why?
- From: d
- Re: PHP-Yes, HTML-No --- Why?
- From: Lennart Björk
- Re: PHP-Yes, HTML-No --- Why?
- From: d
- Re: PHP-Yes, HTML-No --- Why?
- From: Geoff Berrow
- Re: PHP-Yes, HTML-No --- Why?
- From: d
- Re: PHP-Yes, HTML-No --- Why?
- From: Andrew DeFaria
- Re: PHP-Yes, HTML-No --- Why?
- From: d
- PHP-Yes, HTML-No --- Why?
- Prev by Date: Re: PHP-Yes, HTML-No --- Why?
- Next by Date: Re: Replace in PHP
- Previous by thread: Re: PHP-Yes, HTML-No --- Why?
- Next by thread: Re: PHP-Yes, HTML-No --- Why?
- Index(es):
Relevant Pages
|