problem with snmp and php
Posted: 09. October 2008 12:28
hello;
i install xampp server and modify the file php.ini in /apache/bin directory to load the php-snmp module,
but when i launch the script to see how is going well i got a error message, that is:
Warning: snmpwalk() [function.snmpwalk]: No response from 127.0.0.1 in C:\Program Files\xampp\htdocs\yan\snmpwalk.php on line 2
Warning: Invalid argument supplied for foreach() in C:\Program Files\xampp\htdocs\yan\snmpwalk.php on line 4
for the script,
i don't inderstand why the localhost don't give response to that request, may i have a answer, thx
i install xampp server and modify the file php.ini in /apache/bin directory to load the php-snmp module,
but when i launch the script to see how is going well i got a error message, that is:
Warning: snmpwalk() [function.snmpwalk]: No response from 127.0.0.1 in C:\Program Files\xampp\htdocs\yan\snmpwalk.php on line 2
Warning: Invalid argument supplied for foreach() in C:\Program Files\xampp\htdocs\yan\snmpwalk.php on line 4
for the script,
- Code: Select all
<?php
$a = snmpwalk("127.0.0.1", "public", "");
foreach ($a as $val) {
echo "$val\n";
}
?>
i don't inderstand why the localhost don't give response to that request, may i have a answer, thx