Reply to Re: newbie question: <?=$variable?> yields no output

Your name:

Reply:


Posted by Shelly on 09/28/07 22:46

<kurt.krueckeberg@gmail.com> wrote in message
news:1191018210.337127.86000@57g2000hsv.googlegroups.com...
>
>> Short tags are turned off by default now in up to date installs of
>> php. This is because the short opening tag <? is used to start an xml
>> file, so the short tag is now deprecated in php in favour of the full
>> <?php which you should ALWAYS use.
>
> Thanks for the reply. I am using PHP 5.2.0-8. If short tags are turned
> off by default (I am using PHP 5.2.0-8), then should this work:
>
> <?php $var = 5; ?>
> <!-- other stuff -->
> <?php=$var?><br />
>
> It doesn't. Looks like I need to change all occurances of <?=$some_var?
>> to <?php echo $some_var; ?>
>

Exactly! That is because "=$var" is meaningless.

Shelly

[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

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