PHP Classes

PHP Netstater: Get the status of network connections with netstat

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 258 All time: 7,819 This week: 103Up
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: 1108160 in United States United States
Week rank: 91 Up11 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  
File Role Description
Accessible without login Plain text file example.php Example Example
Plain text file Netstater.class.php Class Class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:258
This week:0
All time:7,819
This week:103Up