'phpseclib : Display output of SSH command from multiple servers in HTML table
I am trying to build a dashboard to see Exim mail queue stats in one place. I want to open one page and see the mail queue count for several servers.
I am using PHPSecLib to connect and run the command. So I have a connection file for each server, and then the index.php page that the output of each command needs to display in.
This is my index.php file:
<html>
<body>
<table width="200" border="1">
<tr>
<th scope="col">Web1</th>
<th scope="col">Web2</th>
<th scope="col">Web3</th>
</tr>
<tr>
<th scope="row"><?php include('web1.php'); ?></th>
<td><?php include('web2.php'); ?></td>
<td><?php include('web3.php'); ?></td>
</tr>
</table>
</body>
My problem is that only Web1 mail queue count displays. I am no programmer at all so I am sure there's some easy/obvious thing I am missing here.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
