zion ben yacov zion ben yacov - 10 months ago 76
Bash Question

run php from command line with short tags

I have a framework with a lot of file using

when I include a file from the framework the include doesn't know it's a php file and refer it as a simple text file.

now my php definition in the php.ini is use_short_tags enable, i also see it when I browse the site, it's working.

my question is how to use the framework files and let the php know to use short tags when i run my script from the command line


Answer Source

In ubuntu/debian you have to change

short_open_tag Off


short_open_tag On



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