How to get a list of IP and MAC addresses of the server in PHP

I will write at once a useful function in PHP - is trivial, but who have, what seems interesting.

So - how to determine the IP address of the server which hosted a script? Well we need (protection, and t n), can of course check _SERVER [ “SERVER_ADDR”], - good, but if a lot of server addresses? (this is: write six). And if the script works from the console? But if and MAC addresses needed?

This function …

16 June 2008 | address, function, ip, list, mac, php, script, server

QNX operating system reached a milli-second boot times on Intel Atom processor Z500 series
On the creation of a stable version of Wine took 15 years

More reading: • Comment faire pour obtenir une liste des adresses IP et MAC du serveur en PHP. »»»
Je vais écrire à la fois une fonction utile en...
• Wie man eine Liste von IP-und MAC-Adressen der Server in PHP. »»»
Ich schreibe auf einmal eine nützliche Funktion in PHP -...
• Linux will become the U.S. president. »»»
Douglas Carr [Douglas Karr] in his blog published an interesting...
• Overview, installation and first steps in programming, Linux on the Sony PLAYSTATION 3. »»»
PLAYSTATION 3 - game console unusual for two reasons. First,...
• DDOS - what to do. If the server is only one - Linux with Apache. »»»
This article will help protect the server from DDOS attacks...