Greg
Greg

Reputation: 1055

PHP setting to enable <?=

I just upgraded my WAMP.

A lot of my code used to use <?=$variable?> for a quick echo statement. Does anyone know the php setting to turn this back on?

Upvotes: 3

Views: 165

Answers (4)

anubhava
anubhava

Reputation: 784938

In php.ini this variable is called short_open_tag

Check this php manual: http://php.net/manual/en/ini.core.php for turning this ON.

Upvotes: 1

Stef
Stef

Reputation: 523

Set your short_open_tag to 1 inside your php.ini

Upvotes: 2

kba
kba

Reputation: 19466

Just set

short_open_tag=On

in php.ini

Upvotes: 6

Stephen
Stephen

Reputation: 3432

In PHP.ini, set short_open_tag = 1

Upvotes: 2

Related Questions