PHP Classes

PHP Netstater: Get the status of network connections with netstat

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 261 All time: 7,801 This week: 78Up
Version Licenses PHP version Categories
netstater 1.0Artistic License, B...5Networking, PHP 5, Unix
Description 

Author

This class can get the status of network connections with netstat.

It can execute the netstat program to extract the status of current network connections in the machine.

The class parses netstat output and returns an array with the details of each opened connection.

Picture of Nick Daniels
  Performance   Level  
Name: Nick Daniels <contact>
Classes: 13 packages by
Country: United States United States
Age: 34
All time rank: 1107160 in United States United States
Week rank: 227 Up23 in United States United States Up
Innovation award
Innovation award
Nominee: 4x

Winner: 1x

Example

<?php
/**
 * Netstater Class to Raw/Array
 * --------------------
 * Devel: Nick Daniels
 * Twttr: @ManicSec
 */

$stat = Netstater::Instance();

echo
$stat->fetch_Raw() . PHP_EOL . PHP_EOL;
print_r($stat->fetch_Array());


  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file example.php Example Example
Plain text file Netstater.class.php Class Class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:261
This week:0
All time:7,801
This week:78Up