It's worth noting that binp's code will return the mac address of the SERVER, not the client requesting the page.
On Jul 18, 6:54 pm, bino dev <biy....@gmail.com> wrote: > HiDeeps, > > Chk out this code. > 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; > > > > On Sat, Jul 18, 2009 at 9:40 PM, Deeps <deeps.a...@gmail.com> wrote: > > > how to retrieve an unique id of computer via php > > like mac address or any thing else that is unique for computer > > > plz help me --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---