as someone else suggested... a regexp is probably the
thing you want.

since i have no idea what the format of a MIB is,
i cannot give you any example.


but to find dotted num's, use something akin to this:

preg_match_all('/(\d+)(?=\.?)/', $MIB, $matches);


> -----Original Message-----
> From: Mike Backes [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 08, 2001 2:28 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] php, snmp, and mibs
> 
> 
> Hi,
> Sorry if this is a repeat question, I just can't seem to find an answer to
> this question.
> 
> I am running php4 on NT. I've been able to connect to some network equipment
> with the snmp commands, and retrieve the results. But it's the list of
> values, which can be tough to correspond to the MIB. Is there a way to get
> at least the x.x.x.x.x.x from a MIB file into an array of some kind, or even
> better, to get the object names and such into an array?
> 
> Thanks for any information,
> Mike
> 
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to