Re: "use strict" or similar in PHP?

From: Date: Fri, 27 Feb 2009 10:57:22 +0000
Subject: Re: "use strict" or similar in PHP?
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-288910@lists.php.net to get a copy of this message
9el wrote:
----------------------------------------------------------------------- Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get a Free CD of Ubuntu mailed to your door without any cost. Visit : www.ubuntu.com ---------------------------------------------------------------------- On Fri, Feb 27, 2009 at 3:08 PM, Hans Schultz <h.schultz78@yahoo.com> wrote:
On Thu, 26 Feb 2009 22:38:13 +0100, Shawn McKenzie <nospam@mckenzies.net> wrote:
There is no "compile" time. PHP is interpreted so it is compiled and then executed. If you always want error reporting, then set it in php.ini.
It is compiled in no time, so there is no compile time? LOL
If you are a programmer you should know the difference between Compiler and Interpreter. PHP is interpretted. You are using term without knowing the meaning. Just like javascript is run in browser ... PHP is run at server while the page is being served to the visitor clear?
Not necessarily - there are compilers for php, just like there are compilers for perl, though they are not needed. They can speed up the serving of pages and reduce resource consumption on the server. It is also good practice to completely assemble the page before sending a single line (including headers) to the browser rather than send some data while still executing the script, in which case the script execution time could be likened to a compile time.

« previous php.general (#288910) next »