run php from command line with short tags run php from command line with short tags shell shell

run php from command line with short tags


The INI tag can be set directly from the CLI:

php -d short_open_tag=On <scriptname>


In ubuntu/debian you have to change

short_open_tag Off

to

short_open_tag On

in

/etc/php5/cli/php.ini

And you no need to restart any service after this, just use your console php.