Ad Widget

Collapse

Zabbix 1.1 and PHP 4.1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • joe
    Junior Member
    • Nov 2004
    • 27

    #1

    Zabbix 1.1 and PHP 4.1

    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
    Junior Member
    • Nov 2004
    • 4

    #2
    look in php.ini, there is a key "short_open_tag = Off", change to on and everything must work.

    Comment

    • joe
      Junior Member
      • Nov 2004
      • 27

      #3
      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

      Comment

      Working...