Hi, this is my very first time here, I hope someone can help me, this is so frustrating. I'm running a php-nuke site and am trying to add a "block" to the homepage. Here is the php code I'm using for the site to do this:
<?
if (eregi("block-TestPing.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
$gamehost = "207.xx.xx.xxx";
$result = system("ping -c 1 $gamehost");
$content .= "<CENTER>";
$content .= "Your ping to our network is $result ms";
$content .= "</CENTER>";
?>
It displays this on my page:
Your ping to our network is ms
Just seems to ignore my $result...
🙁