Re: snmp / php / linux /error
| From: | Scott Hurring | Date: | Fri, 19 Jul 2002 18:13:50 +0000 |
| Subject: | Re: snmp / php / linux /error | ||
| References: | 1 | Groups: | php.general php.windows |
| Request: | Send a blank email to php-general+get-108551@lists.php.net to get a copy of this message | ||
try putting the PHP binary on the shebang line and
include('snmp_guard.php'); in the code.
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Maas" <maas@telia.com> wrote in message
news:20020718103644.19470.qmail@pb1.pair.com...
> Iam trying to use my php file in a Linux machine.
>
> #!/usr/local/bin/snmp_guard.php -q
>
> <?
> $bat = snmpget("192.168.10.8", "pub_likt",
> ".1.3.6.1.4.1.2606.1.2.12.0");
> $sum = snmpget("192.168.10.8", "pub_likt",
> ".1.3.6.1.4.1.2606.1.2.13.0");
> $drift = snmpget("192.168.10.8", "pub_likt",
> ".1.3.6.1.4.1.2606.1.2.10.0");
> $verk = snmpget("192.168.10.8", "pub_likt",
> ".1.3.6.1.4.1.2606.1.2.11.0");
> echo $bat;
> ?>
>
> Then I start it with php snmp_guard.php
>
> All I get is
>
> Call to undefeind funcion snmpget()
>
> WHY??
>
>