tracekmfk.blogg.se

Get linux mac address with passthru php
Get linux mac address with passthru php






get linux mac address with passthru php

Have your cron job set to run every 60 seconds for example so it'll take no longer than 60 seconds from the user requesting it to the actual result being returned. For example, in Windows mount C D:GAMES will give you a C drive in DOSBox which points to your Windows D:GAMES directory (that was created before).

get linux mac address with passthru php

How you notify the end client that a result has been returned is upto you I suggest either an iframe or an ajax check query to see if results exist in the db that haven't been "viewed" yet. Request (webserver) > pending db > cron check if job exists > if job exists execute requested command > return data db > webserver displays data.

get linux mac address with passthru php

Then have your php website display the output. MAC addresses are never transfered beyond the router connecting a lan segment to the internet. Have a cron script that executes a php/perl/python whatever bash script/application that will request which command to run from the db (check see if request is pending if so run specified command) and then write its result set out back into the DB. Any attempt to get the MAC in PHP will return the server MAC Address, because that is the computer on which the PHP code executes. Have php write a command "request" into a database table. Or what I'd do is separate the web side from the command side totally. 2 ways of doing it use the exec() command within php to directly execute the request.








Get linux mac address with passthru php