J
J
jehord2014-12-07 15:20:51
PHP
jehord, 2014-12-07 15:20:51

Short_open_tag = on does not work, what can affect?

I'm trying to enable a shorthand php entry like <?=$someVar?>
In the /etc/php5/fpm directory, I edit the short_open_tag directive of the php.ini file, set the value to On.
But the abbreviated tags did not work and do not work, tell me where to dig.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
E
Eugene, 2014-12-07
@jehord

See where the actual php.ini is
<?php phpinfo(); ?>

F
FanatPHP, 2014-12-07
@FanatPHP

1. restart php-fpm
2. make sure that PHP is processed using this technology
3. an entry like <?=$someVar?> works fine even with short_open_tag = off

I
Ivan, 2014-12-07
@0neS

<?php echo ini_get('short_open_tag') ?> what does it say? Maybe the value is overwritten somewhere? In php-fpm pools for example.

V
vitaliy2, 2016-01-10
@vitaliy2

For some reason, /etc/init.d/php5-fpm restart does not restart php5-fpm on Ubuntu 14, but service php5-fpm restart works fine (on other systems and with other programs everything is fine). Those. the problem could be that php5-fpm just didn't restart.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question