Jenk
-
Posts
778 -
Joined
-
Last visited
Never
Posts posted by Jenk
-
-
[code=php:0]session_start();[/code] must be called before there is _any_ output sent to the user agent. Check for other error messages/notices and for any unwanted whitespace outside of [code=php:0]<?php ?>[/code] tags.
-
try this..
[code]<?php
function formatArray ($array)
{
if (!is_array($array)) return false;
$return = array();
foreach ($array as $key => $val)
{
$key = trim(substr($key, 12));
$val = trim(substr($val, 12));
$key = str_replace(' ', ':', $key);
$return[$key] = $val;
}
return $return;
}
$sys = snmprealwalk("192.168.100.100", "cisco1720", ".1.3.6.1.2.1.17");
$sys = formatArray($sys);
?>[/code]untested.
PHP FRAMEWORK ?!
in PHP Coding Help
Posted