Skip to content

vuchkov/php-get-remote-server-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

php-get-remote-server-info

Get the remote hosting server info in PHP language.

ob_start(); // Turn on output buffering
system('ifconfig'); // or other console command information as an example: fisk free space.
$mycom=ob_get_contents();
ob_clean();
$findme = "Physical";

$pmac = strpos($mycom, $findme);
$mac=substr($mycom,($pmac+36),17); 
echo $mac;

About

Get the remote hosting server info in PHP language.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published