Jump to content

Jenk

Members
  • Posts

    778
  • Joined

  • Last visited

    Never

Everything posted by Jenk

  1. cakephp
  2. [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.
  3. 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.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.