hmm... thx for the solution. it work. but... i found out, if others user in same network login to my localhost, the mac address is the same... any thing can represent the computer details?
It seems like it only returns the MAC for the machine that is hosting the page... I've been searching Google and it appears you can't get the user's MAC-address, unless it's in the same network. If there's a router on the line, it's not possible to get the client's MAC.
Typically e-commerce solutions do not store the user's mac address. There is no reason for it. The user may be on one computer purchasing something, then go over to another computer and make another purchase...it's the same person each time but the computer they used was different.
The is no reason, that I can think of, that you would need to do this.
Instead store the user-account's Identifier to indicate what user did whatever it is you're logging.
Comment