Re: "use strict" or similar in PHP?

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

 



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@xxxxxxxxx> wrote:

On Thu, 26 Feb 2009 22:38:13 +0100, Shawn McKenzie <nospam@xxxxxxxxxxxxx>
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.

--
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