Solved

PHP echo short syntax not working

Posted on 2008-10-11
2
770 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 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

821 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