add all files

This commit is contained in:
Rucus
2026-02-17 09:29:34 -06:00
parent b8c8d67c67
commit 782d203799
21925 changed files with 2433086 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
ping network device using php and display results in a table
```
<?php
$ip = "192.168.0.11"
$ip = explode("\n", $ip);
echo "<table><tr><th>IP</th><th>Result</th></tr>";
foreach ($ip as $ip) {
$output = shell_exec("ping -n 1 $ip");
if (strpos($output, 'Received = 1')) {
echo "<tr><td>".$ip."</td><td>Online</td></tr>";
} else {
echo "<tr><td>".$ip."</td><td>Offline</td></tr>";
}
}
echo "</table>";
?>
```