Re: Can't use the SNMP class
| From: | Stuart Dallas | Date: | Tue, 04 Dec 2012 18:28:14 +0000 |
| Subject: | Re: Can't use the SNMP class | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-319793@lists.php.net to get a copy of this message | ||
On 4 Dec 2012, at 17:42, "Marc-Andre Bergeron" <marc-andre.bergeron@cogeco.com>
wrote:
> When I try to use the SNMP class I got the following error: PHP Fatal error:
> Class 'SNMP' not found. I use the following version: PHP 5.3.3 (cli) and it
> runs on CentOS release 6.2 (Final). I've also installed
> net-snmp-5.5-41.el6_3.1.x86_64. According to the documentation "In order to
> use the SNMP functions requires installation of the » Net-SNMP package". I
> can use the snmp functions (ex: snmpget, snmpset, etc) but not the SNMP
> class. Any idea?
The class is only available in PHP 5.4+.
http://php.net/snmp.construct
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/