PHP syntax question for outputting like this: <?="Hello World"?>?

Michael

New member
Hi, i used to echo stuff in PHP like this:

<a href="<?=$_SERVER['PHP_SELF']?>">Reload</a>

Which is equivalent to:

<a href="<?php echo $_SERVER['PHP_SELF']; ?>">Reload</a>

Now I downloaded the newest XAMPP version and it doesn't work anymore (Half of the scripts are useless without, or i have to rewrite and stuff but i always found that it is really useful feature).

How can i turn it on again, which option is it, how to get there? (XAMPP 1.7.3, Windows XP)

Thanks.
Super Globals are turned ON.
Tried with <?="Hello World"?> on old and new server. Works with old, not with new.
Found the answer while stumbling through the php.ini

short_open_tag = Off

Has to be turned On.
 
Back
Top