Solved

PHP echo short syntax not working

Posted on 2008-10-11
2
767 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
2 Comments
 
LVL 142

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to count occurrences of each item in an array.
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now