Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.mixmin.net!feeder.erje.net!news.internetdienste.de!news.tu-darmstadt.de!news.belwue.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <8879571.SEqChMirdb@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Tue, 16 Aug 2011 19:24:46 +0200 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 7Bit Subject: Re: A Few Noob Questions Newsgroups: comp.lang.php References: <3Ev2q.149930$AU4.73655@en-nntp-07.dc1.easynews.com> Followup-To: comp.lang.php MIME-Version: 1.0 Lines: 31 NNTP-Posting-Date: 16 Aug 2011 19:24:47 CEST NNTP-Posting-Host: 9c5d24ea.newsspool1.arcor-online.net X-Trace: DXC=U3_Kg6kS;?e>jlK2>IgHGdic==]BZ:afn4Fo<]lROoRa<`=YMgDjhgbn:oU1L8[`\nDZm8W4\YJNlb@mF9jNikde_dXMBNGELEaJTNXKKK5gbk X-Complaints-To: usenet-abuse@arcor.de Xref: x330-a1.tempe.blueboxinc.net comp.lang.php:2843 Man-wai Chang wrote: > On 16/08/11 11:02 PM, eBob.com wrote: >> Is "script" official terminology in PHP? The book I am reading says >> "Built-in superglobal variables are visible everywhere within a script." >> but has never explicitly defined "script". (Although there is a hint >> that maybe everything between tags is a script.) > > In the old days, "Programs" were compiled into binary codes for direct > execution by the CPU. "Scripts" were not compiled, but interpreted by a > program called intepreter. Contrary to popular belief, scripts, i. e. programs written in a scripting language, are compiled, too. They are *JIT-compiled* *at runtime*. PHP 4+ scripts are compiled by the Zend Engine (a virtual machine, currently Zend Engine II), to Zend Opcode, a platform-independent byte code (much like with Java). That byte code is interpreted by that VM. See also: - - . PointedEars -- Danny Goodman's books are out of date and teach practices that are positively harmful for cross-browser scripting. -- Richard Cornford, cljs, (2004)