Reply to Re: echo or ?><?php

Your name:

Reply:


Posted by Michael Fesser on 06/14/07 15:38

..oO(SrSilveira)

>On Jun 13, 10:01 pm, Michael Fesser <neti...@gmx.de> wrote:
>
>> Are you sure short_open_tag will be enabled on all of your servers?
>
>of course i'm sure. if it's not enabled you can just do like that
><?php=$Mystring?>

Still wrong. If you want reliable and portable code, then it has to be

<?php echo $MyString?>

short_open_tag is entirely optional. You should only use it if you are
_always_ in control of the servers your scripts are supposed to run on
or at least be able to change their configuration. It's still bad style
and not recommended.

Micha

[Back to original 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

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