Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #17153
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Performace of form with lot alternate php and html |
| Date | 2016-11-07 19:08 +0100 |
| Organization | PointedEars Software (PES) |
| Message-ID | <2465100.EWOHfxBK4K@PointedEars.de> (permalink) |
| References | <3806c11e-2655-4ad1-b652-1e95df557756@googlegroups.com> <92f78771-d295-58ae-f8b3-87097320b02d@arnowelzel.de> <2531771.e9J7NaK4W3@PointedEars.de> <26403850-9590-327f-0c46-27c54298c489@arnowelzel.de> |
Arno Welzel wrote: > Thomas 'PointedEars' Lahn schrieb am 2016-11-03 um 16:24: >> Arno Welzel wrote: > [...] >>> ?> ... <?php >>> >>> will just be treated like >>> >>> echo( ... ); >> >> That is obviously incorrect. >> >> First of all, “echo” is not a function but a language feature. >> It should not be written as if it were a function, so it should >> be written without the parentheses. >> >> Second, there is no expansion performed outside of “<?php … ?>” blocks. > > Correct. That's why I said "treated like" and not "is exactly the same > as". The point here is that *several* consecutive lines outside of <?php … ?> are treated like *one* “echo” statement with the difference that the source code is not parsed for language tokens except “<?”. Beginners are often not aware that using several consecutive “echo” statements is comparably inefficient. You have trimmed from your text the false conclusion, which I was referring to, that accompanied the correct statement that you left in. > [...] >> In situations like this, where the output is variable, an opcode >> cache provides no advantage. > > Wrong. The code is not changing - and this is all what counts, not the > output. You are missing the point again. -- PointedEars Zend Certified PHP Engineer <http://www.zend.com/en/yellow-pages/ZEND024953> | Twitter: @PointedEars2 Please do not cc me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Performace of form with lot alternate php and html dino.liberale@gmail.com - 2016-11-02 08:19 -0700
Re: Performace of form with lot alternate php and html Jerry Stuckle <jstucklex@attglobal.net> - 2016-11-02 14:45 -0400
Re: Performace of form with lot alternate php and html Arno Welzel <usenet@arnowelzel.de> - 2016-11-03 08:16 +0100
Re: Performace of form with lot alternate php and html Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-11-03 15:24 +0000
Re: Performace of form with lot alternate php and html dino.liberale@gmail.com - 2016-11-03 12:15 -0700
Re: Performace of form with lot alternate php and html Jerry Stuckle <jstucklex@attglobal.net> - 2016-11-03 18:59 -0400
Re: Performace of form with lot alternate php and html Arno Welzel <usenet@arnowelzel.de> - 2016-11-07 09:41 +0100
Re: Performace of form with lot alternate php and html Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-12-15 15:29 +0100
Re: Performace of form with lot alternate php and html Arno Welzel <usenet@arnowelzel.de> - 2016-11-07 09:39 +0100
Re: Performace of form with lot alternate php and html Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-11-07 19:08 +0100
Re: Performace of form with lot alternate php and html Arno Welzel <usenet@arnowelzel.de> - 2016-11-07 23:53 +0100
csiph-web