You are here: Re: [PHP] Is echo tag reasonably portable? « PHP « IT news, forums, messages
Re: [PHP] Is echo tag reasonably portable?

Posted by Robin Vickery on 11/15/05 20:34

On 11/15/05, Roman Ivanov <gamblergluck@yahoo.com> wrote:
> 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.

If you've seen this note, then why did you need to ask?

It doesn't really matter whether you've seen a server where short tags
are disabled, just the possibility that they won't work means they're
not portable. Long tags always work.

Many experienced sysadmins automatically disable everything that's not
needed, and short tags definitely come under that heading.

-robin

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация