![]() |
Error with PEAR's library Net_Traceroute - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Error with PEAR's library Net_Traceroute (/showthread.php?tid=37600) |
Error with PEAR's library Net_Traceroute - El Forum - 01-14-2011 [eluser]Unknown[/eluser] Hi guys, i am building an application that will traceroute a host and display the data on googlemap. I am currently using pear's traceroute library. Able to run the traceroute() command but it seems to throw me one error. A PHP Error was encountered Severity: Notice Message: Undefined offset: 5 Filename: Net/Traceroute.php Line Number: 531 Traceroute.php is the library class i called. It seems like it has a problem with the array associated to line 531. I can't seem to find the problem. Below is the code of the library class Code: function _parseResultwindows() Quote:This is Line 531------^ "if ((int) $tempparts[$searchIdx] > 0) {" Code: $this->_ttl = (int) $tempparts[$searchIdx]; // TTL might be written in next line; e.g. on Windows 98 In my controller, this is how i call the traceroute() function: Code: $host = $this->input->post('ip_text'); Everything is displaying correctly just that the error keep popping out. Any help will be deeply appreciated. I am using the lastest release of Traceroute package from PEAR--> version 0.21.3 Error with PEAR's library Net_Traceroute - El Forum - 01-22-2011 [eluser]Unknown[/eluser] Anyone? |