cs_geek — 2010-10-18T18:49:40-04:00 — #1
Does it read the file line by line and check even HTML and JScript at first! or does if search for <?php ?> and read what is between?
salathe — 2010-10-20T03:54:46-04:00 — #2
They are not deprecated (considered so, or otherwise), but short tags and ASP-style tags are, as the Zend guide points out, not recommended as I said earlier. I feel that I can speak for the PHP documentation group here in qualifying that if something is deprecated in PHP, it will emit an E_DEPRECATED; if it does not, then it is simply not a deprecated feature. Sorry I tried to clarify the situation for others, next time I'll keep my trap shut.
samanime — 2010-10-20T02:37:03-04:00 — #3
Well, I'll rephrase: there is absolutely no mention of them being deprecated in the official vanilla PHP guide.
Granted this is a mute point though. I don't know why anyone would really both using anything other than <?php ?> for any reason other than just being a bit stubborn.
starlion — 2010-10-19T20:51:13-04:00 — #4
Valid does not mean they're not -considered- deprecated. Your Next Generation consoles play previous generation console's games. The previous generation are still considered deprecated, even though they're still valid in the new machine.
salathe — 2010-10-19T04:03:19-04:00 — #5
Uhh, not true. None of those styles of tags are deprecated. However, short tags and ASP-style tags are recommended against, in the name of portability, and very few people use the
samanime — 2010-10-18T20:00:56-04:00 — #6
starlion — 2010-10-18T19:31:41-04:00 — #7
the PHP processor ignores everything not enclosed inside <?php ?>, <? ?>, <% %>, or <script language='php'></script> tags. Note that everything except <?php ?> is considered deprecated.
force — 2010-10-18T22:34:40-04:00 — #8
Yep, I misread that. Going back and looking at it again at what samanime said makes sense.
salathe — 2010-10-20T07:11:17-04:00 — #9
The PHP docs team has nothing to do with php|architect nor their study guides. I'm not entirely sure where you're trying to go with this so would ask that we perhaps steer the discussion back on topic? :x
starlion — 2010-10-20T06:59:04-04:00 — #10
Well then i'd suggest the PHP Documentation group contact the people who are producing their study guide and telling them they got it wrong....
(Even the new Zend-Online 5.3 guide lists only the <?php ?> and <script> tag formats)
starlion — 2010-10-19T18:40:21-04:00 — #11
Quoted from the php|architect's Zend PHP 5 Certification Study Guide:
"Short tags, script tags and ASP tags are all considered deprecated and their use is strongly discouraged".
samanime — 2010-10-19T20:10:06-04:00 — #12
That's Zend. The official vanilla PHP guide says that they are all still valid.
wonshikee — 2010-10-18T20:19:11-04:00 — #13
You misunderstand what sam said.
samanime — 2010-10-18T20:30:38-04:00 — #14
Yeah, sorry for the misunderstanding. I basically said what you said.
PHP takes PHP tags and makes page with any generated HTML in place, then it's served up (by Apache/IIS) like any other HTML page. PHP interpreter ignores anything outside of PHP tags and it's just left there.
force — 2010-10-18T20:07:34-04:00 — #15
The interpreter ignores the HTML. Apache serves the processed PHP output and the HTML to the client.