Is there a way to detect if a server is running using php?
I.E, if a server is running, the page is redirected there, but if it isn't, then the page is redirected somewhere else.
thanks in advance.
djddb
use a fsockopen function to do this
<?php $fp = fsockopen("www.server.com", $port, &$errno, &$errstr, $timeout); if (!$fp) { header("Location: error.php"); } else { fclose($fp); header("Location: success.php"); } ?>