Re[2]: Php files with .html extension?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Trevor,

Monday, October 25, 2004, 4:47:53 PM, you wrote:

GT> processed by PHP?  I mean, if the PHP parser goes through and never sees
GT> a <? Or <?php, does it do any more than just output the file? True,
GT> that's something, but is it anything really significant.

True, it doesn't do anything other than output the HTML. But it's that
"load - scan - determine - output" that takes up CPU time and memory.

Sure, on most sites it doesn't matter one bit. But on popular sites..
well, you can do the math I'm sure.

I guess at the end of the day it comes down to "don't do un-necessary
things". That goes for your code as well as your server set-up, but
it's true to say that if you don't actually need to parse HTML as PHP,
then don't.

Best regards,

Richard Davey
-- 
 http://www.launchcode.co.uk - PHP Development Services
 "I am not young enough to know everything." - Oscar Wilde

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux