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]
|