note 83346 added to function.snmprealwalk

From: Date: Wed, 21 May 2008 17:19:37 +0000
Subject: note 83346 added to function.snmprealwalk
Groups: php.notes 
Request: Send a blank email to php-notes+get-139591@lists.php.net to get a copy of this message
To check if there were any results found you have to use the empty() function. The count() function always returns a number 1 or larger. $walk_result = snmprealwalk($machine_ip, $community, $snmpcodes['interface_names']); if (empty($walk_result)) { print "No network interfaces found.<br>\n"; exit(0); } ---- Server IP: 66.207.199.35 Probable Submitter: 206.174.215.6 ---- Manual Page -- http://www.php.net/manual/en/function.snmprealwalk.php Edit -- https://master.php.net/note/edit/83346 Del: integrated -- https://master.php.net/note/delete/83346/integrated Del: useless -- https://master.php.net/note/delete/83346/useless Del: bad code -- https://master.php.net/note/delete/83346/bad+code Del: spam -- https://master.php.net/note/delete/83346/spam Del: non-english -- https://master.php.net/note/delete/83346/non-english Del: in docs -- https://master.php.net/note/delete/83346/in+docs Del: other reasons-- https://master.php.net/note/delete/83346 Reject -- https://master.php.net/note/reject/83346 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#139591) next »