PDA

View Full Version : Zabbix 1.1 and PHP 4.1


joe
21-04-2005, 21:03
Alexei,

We have an older system which is running one of our Zabbix 1.1a7 installations. This system is running PHP4.1. There are 2 problem areas, both stemming from using <? to start a PHP codeblock, instead of <?php .

So basically we're getting 2 sections of code which are not being executed, and just being displayed as HTML.

1) include/html.inc.php, line 21
2) hosts.php, line 320

When I modified both of those lines to be <?php, then everything worked fine. Those are the only two places I found that were using <?.

Simple fix. :)

joe

aamen
22-04-2005, 22:40
look in php.ini, there is a key "short_open_tag = Off", change to on and everything must work.

joe
27-04-2005, 23:00
Thanks for the reply. That would fix it I suppose, but I think the tags should be uniform. If you're going to use <?php in every place but 2, wouldn't it make more sense to fix those 2 places? :)

However, thanks for the tip, I didn't know about that option!

joe