note 20934 deleted from ref.snmp by googleguy

From: Date: Tue, 22 Oct 2013 09:01:38 +0000
Subject: note 20934 deleted from ref.snmp by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-196833@lists.php.net to get a copy of this message
Note Submitter: thug at wolf359 dot cjb dot net ---- Just a quick note on PHP SNMP instalation on Windows machines (IIS 5.x / Win2k SP2 etc...) I had installed PHP into C:\PHP.. (standard stuff eh?) Whilst I had followed the instructions for the installation of SNMP (put php_snmp.dll in extension_dir, uncomment entry in php.ini and all mib files located on the same drive where php was installed (in this case c:\usr\mibs right?) I still ran into trouble like "Cannot find module (IP-MIB): At line 0 in (none)..." appearing on the bottom of every php that page I was viewing which existed on a drive other than C:\ drive... It seams that the mibs dir (and content thereof) have to be located on every volume where a php file will be executed from. For example :- If you have a php file as "C:\INETPUB\WWWROOT\snmp1.php" then the coresponding "C:\USR\MIBS\*.*" has to be present (as mentioned in the install.txt). Now here comes the catch... If you have a "D:\INETPUB\PHPROOT\snmp1.php" file, then a copy of the mib files have to be in "D:\USR\MIBS\*.*" as well (the same mib files that are on the C:\ drive and same basic location <drive>:\USR\MIBS). (Or in short : Copy the C:\USR dir (inc mibs dir) to *every* drive you intend to have .php files accessed from. Done!) Hope this helps other PHParians. Keep up the *Great* work!!!

« previous php.notes (#196833) next »