Archives par étiquette : apache

Php displaying parts of code while executing the rest of the page correctly

So you have installed/reinstalled you web server and suddenly your page display bits and parts of php code between perfectly executed templates and scripts.

the culprit is php.ini.

edit it and set the option short_open_tag to « on » and restart your apache/lighttp client.

 

If set to off, it will disregard any php code writen between <? … ?> and only interpret what is between <?php ..?>.