Menu
Hi,
I have a dedicated server where I run LAMP.
I want to get the server’s network parameters: ip address, subnet mask or cidr, broadcast address, packets and bytes sent and received.
I know there is the “ifconfig” command where I can specify the network interface which I want to see, and I will receive the output.
But I can’t parse the output from shell_exec to values I want.
Have I to use regular expression? And how?
Thanks