- Joined
- Jan 24, 2007
- Messages
- 49
- Reaction score
- 0
Is it possible to host the website off a host and not the comp and still see the server status and etc.?
$gameserv = @ fsockopen("ip to where its hosted",29000, $errno, $errstr, .5);
if($gameserv)
$gameserv = '<img src="img/loginon.jpg">';
else
$gameserv ='<img src="img/Loginoff.jpg">';
echo $gameserv;
$gameserv = @ fsockopen("ip were hosted",29100, $errno, $errstr, .5);
if($gameserv)
$gameserv = '<img src="img/charon.jpg">';
else
$gameserv ='<img src="img/charoff.jpg">';
echo $gameserv;
$gameserv = @ fsockopen("ip were hosted",29200, $errno, $errstr, .5);
if($gameserv)
$gameserv = '<img src="img/worldon.jpg">';
else
$gameserv ='<img src="img/worldoff.jpg">';
echo $gameserv;
<?
$connection = mysql_connect("ip were database is","id here","pass here") or die ("Couldn't Connect to the server.");
$db = mysql_select_db("database name here", $connection) or die ("Couldn't select database");
?>
<?
require_once("database.inc.php");
?>