title: Getting the visitors MAC Address using PHP and ipTables
body: <p>I'm doing a project for class and the professor has asked me to store the visitors IP address and MAC address to my database when they log in.</p>
  
  <p>So far after hours of looking around I have been able to get the IP using PHP, but now I need to figure out how to get the MAC address.</p>
  
  <p>From my research I can see that using iptables is the key. I have installed the packed onto my web server now just need some help on figuring out how to grab the data from iptables and output it into an echo command so I can see whats going on.</p>
  
  <p>Well for starters, I would need to know how to capture the MAC address using iptables before figuring out how to use PHP in all of this.</p>