Hi all, I installed an php_snmp plugin in my local server, and recieving an error Fatal error: Call to undefined function snmpwalk() in <dir> on line 3 Code (markup): here's what ive done already, - enabled php_snmp extension - downloaded php_snmp.dll and placed it under the ext directory - uncommented php_snmp on the php.ini - enabled extension php_sockets am i missing something? how can i fix this and let apache read the snmp functions? Thanks
Some programs (such as XAMPP) have multiple php.ini files. Make sure you're editing the right one. Run php_info() and see if it's enabled there. Restart Apache (might be obvious, but it's not on your check list)
When checking if a function is there you can use this, http://php.net/manual/en/function.function-exists.php Glen
@nico_swd currently im using wamp to my test server, im editing the correct one (putting php.ini to error), forgot that one, but yes i always restart the services. @HuggyEssex certainly that would i do, the thing is im still installing this plugin/object/functions to php. read some articles in installing snmp, php extension integration check (uncommented this one in .ini) extensions=php_snmp.dll Code (markup): while in apache theres this thing about mod_ap2_snmp.so, which is not available on the local server apps i have a great feeling that this must be installed to apache 2.0. anybody installed modules in apache before? specifically mod snmp?
Just a note on the php.net site about what php versions support snmp, might be relevant as the latests xamp version is php5.3.0, thus you'll probable need to upgrade your php http://us3.php.net/manual/en/snmp.installation.php