|
Posted by kurt.krueckeberg on 09/28/07 22:23
> 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; ?>
Navigation:
[Reply to this message]
|