|
Posted by Jerry Stuckle on 09/29/07 13:13
RageARC wrote:
> I have seen somewhere (can't cite where, as I don't remember the site)
> a summary of the PHP 6 discussion, in which only the ASP style tags
> are removed. Short Tags will remain enabled and completely
> functioning, and they have no plans to remove them.
>
And I've heard just the opposite - that they may be removed in PHP 6.
> Might not be completely true, but hey, that's what I just read.
>
> Anyhow, I also never use short tags. Let's call things by their names.
>
> You have <?xml and <?php. Don't try to shorten them out. Just express
> them. Clearly tell everyone it's PHP and not XML (or vice versa). When
> people assume things in this world of programming, problems happen. It
> happened before, and will always happen.
>
> ---
>
> Anyway that's not the point. The first post just asked how to do it,
> it didn't ask for a lecturing of whether it is correct or not, and as
> far as I have seen, the guy is being paid to do it that way.
>
Encouraging good coding practices IS part of what we should be doing, as
is letting people know what kinds of problems their poor practices can
cause.
It would have dropped quickly if we didn't have a noob who finally
admitted he's too lazy to type <?php once on a page.
> SO open your php.ini file and check if short tags are enabled. That
> code works for me so I can assume it's your server's configuration. Oh
> and also, check the file's source code. The PHP might not being
> parsed, and being shown as a XML line of code (it did for me yesterday
> on another code).
>
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|