PHP - Accessing and sending data to process -
PHP - Accessing and sending data to process -
i've been programming little client-server-application , want show output of server-process in little server-webpage. everytime, press key in server-console, current state output. assuming, server running , want show current state of server, how implement in php?
my thoughts process , send key input. how implement in php? server running on debian 6 apache , php 5.4.
thanks in advance
depend on how simple want go: the simplest simulate call. example, client calls fopen('http://server.example.com/status.php?server=myserver&stats=uptime'); , @ server level, @ $_get['server'] , $_get['uptime'] . can utilize method , add together authentication either passing credentials variable. output can either plain html or json encoded use xml rpc or soap
php cross-process
Comments
Post a Comment