Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 777
  • Last Modified:

PHP echo short syntax not working

Hi guys, hope you are all well.
Guys i have a problem in using the php echo short syntax on 1 of 2 setups I have.
The syntax Im trying to use is:

<?= $variablename ?>
instead of:
<?php echo $variablename ?>

It is working fine on my LINUX Server, but not on my WINDOZE box (PHP/MySQL with WAMP 5)
On my WINDOZE box I have to use <?php echo blah blah ?>

Is there a php setting or something in php.ini that I have to tweak on my $M box?

Any help greatly appreciated.
0
Simon336697
Asked:
Simon336697
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
that's probably the "short_open_tags" setting:
http://lu.php.net/ini.core
0
 
Simon336697Author Commented:
HI ange!
That did it thank you mate, and congratulations :>)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now