title: how to get the client computer MAC id using php
body: <p>For getting the mac ID am using the following code.</p>
  
  <pre><code>&lt;?php
  
  ob_start(); // Turn on output buffering
  system('ipconfig /all'); //Execute external program to display output
  $mycom=ob_get_contents(); // Capture the output into a variable
  ob_clean(); // Clean (erase) the output buffer
  
  $findme = "Physical";
  $pmac = strpos($mycom, $findme); // Find the position of Physical text
  $mac=substr($mycom,($pmac+36),17); // Get Physical Address
  
  echo $mac;
  ?&gt;
  </code></pre>
  
  <p>But its returns the server mechines MAC ID.. i need to get the MAC iD of the PC in which my webpage runs.</p>
  
  <p>Can anyone help me</p>