Forum Moderators: phranque
You might be able to do a global search and replace though, something like
find ./ -name "*.php" -exec perl -i~ -wpe 's/\<\? /\<\?php /g' {} \;
Note: Using short tags should be avoided when developing applications or libraries that are meant for redistribution, or deployment on PHP servers which are not under your control, because short tags may not be supported on the target server. For portable, redistributable code, be sure not to use short tags.Resource:
Basic syntax [php.net]
The PHP configuration directive short_open_tag [php.net] is of type PHP_INI_PERDIR [php.net] which means the entry can be set in
php.ini,
.htaccessor
httpd.conf.
Do you want the tags on or off? Seems the title states you want them off, your first message suggests otherwise.
// On:
php_flag short_open_tag on
// Off:
php_flag short_open_tag off