|
Posted by Jim Moseby on 11/15/05 18:04
>
> Robin Vickery wrote:
> > On 11/15/05, Roman Ivanov <gamblergluck@yahoo.com> wrote:
> >
> >>Can '<?=' be used for templates, or is it "a bad thing"?
> >
> >
> > The manual's reasonably explicit on the subject:
> >
> > "Note: Using short tags should be avoided when developing
> > applications or libraries that are meant for redistribution, or
> > deployment on PHP servers which are not under your control, because
> > short tags may not be supported on the target server. For portable,
> > redistributable code, be sure not to use short tags."
>
> I've seen this note. But I haven't seen a single server where
> short tags
> were disabled.
Nor have I. However, if I use long tags, my script will *always* work. If
I use short tags there is a *possibility* that it won't. So, when writing
code that is required to be portable, there is no reason to ever use short
tags.
JM
Navigation:
[Reply to this message]
|