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;
-
Notifications
You must be signed in to change notification settings - Fork 0
vuchkov/php-get-remote-server-info
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Get the remote hosting server info in PHP language.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published