kodr
Programmer
- Dec 4, 2003
- 368
I'm not sure if this is possible, or if there's a better way. What I've got is 5 Linux/Apache servers. 4 of them have a small php file that basically just echo's the results of a small command.
I can pull up the server_status.php file from any of the 4 servers from any machine on my network, and get the text data that I'm expecting.
How could I pull this data into a web page on the 5th server?
It's probably something real simple that I'm overlooking.
my server status code is this:
I can pull up the server_status.php file from any of the 4 servers from any machine on my network, and get the text data that I'm expecting.
How could I pull this data into a web page on the 5th server?
It's probably something real simple that I'm overlooking.
my server status code is this:
Code:
<?php
$results = exec('/var/[URL unfurl="true"]www/html/server.status[/URL] SITE_A');
echo $results;
?>