Solved

PHP echo short syntax not working

Posted on 2008-10-11
2
771 Views
Last Modified: 2012-05-05
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
Comment
Question by:Simon336697
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 22695624
that's probably the "short_open_tags" setting:
http://lu.php.net/ini.core
0
 
LVL 1

Author Comment

by:Simon336697
ID: 22696546
HI ange!
That did it thank you mate, and congratulations :>)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question