typo in example code ?
| From: | bruno seys | Date: | Thu, 20 Sep 2007 16:34:28 +0000 |
| Subject: | typo in example code ? | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-94@lists.php.net to get a copy of this message | ||
Hi,
While executing the on line example code 2251, I received following
error message:
Example 2251. Using snmpget()
<?php
$syscontact = snmpget("127.0.0.1", "public", "system.SysContact.0");
?>
Warning: snmpget() [ <http://localhost/edu/function.snmpget>
function.snmpget]: Invalid object identifier: system.SysContact.0 in
C:\apachefriends\xampp\htdocs\edu\snmp_test.php on line 36
I am strongly convinced this is caused by the Upper Casing of the red
"S" within "system.SysContact.0" since changing this to lower case works
fine.
Please do the necessary to correct if deemed approriate.
Regards,
Bruno Seys
Belgium