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

From: Date: Mon, 25 Oct 2004 16:08:55 +0000
Subject: Re[2]: [PHP] Php files with .html extension?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-200267@lists.php.net to get a copy of this message
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

« previous php.general (#200267) next »