Returning Game Status - retrieving game status

Pages: 1, 2
free web hosting

Read Latest Entries..: (Post #11) by mobious on May 9 2005, 08:13 AM. (Line Breaks Removed)
and it would be much easier if you would use a template system and completely seperate your html tags from your php codes.
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion > CONTRIBUTE > Computers > Programming Languages > PHP Programming

Returning Game Status - retrieving game status

HmmZ
I'm currently making a fansite for a game thats coming out soon and im wondering how I can show the game status:
Meaning..is the game down? or is the game up?

I of course don't have access to their servers and I have no IP whatsoever, Im very sure they won't give out much info on their servers either, because their current game (GunBound) is getting hacked like crazy, releasing server info might cause problems for both me and Softnyx

At the moment I have only the forum status (wich is pretty easy), and a n/a image on my Game Status.

Is there a possibility to get their game status by contacting the game in another way? or is there a way to get it with minimum info of the gameservers?

The game im talking about is Rakion
My fansite is located at:
online.trap17.com

Thanks in advance

Reply

HmmZ
Damnit, I just found out that IE(6) doesnt show the images from my if statements? anyone can help me on that too?

CODE
<table bgcolor="#440000" cellspacing="0" width="270" height="175" border="0" style="position: absolute; top: 0px; left: 1000px; background-image: url('http://www.online.trap17.com/Rakion/images/statuswindow.gif');">
<TR><TD align="left">
<?php

if(!mysql_connect(localhost, ***, ***)){
?>
<img src="http://www.online.trap17.com/Rakion/images/spacer.gif" border="0" width="176" height="1" style="position: absolute; top: 42px; left: 1000px;"><img src="http://www.online.trap17.com/Rakion/images/status_offline.gif" border="0" style="position: absolute; top: 42px; left: 1176px;">
<?
}
else {
?>
<img src="http://www.online.trap17.com/Rakion/images/spacer.gif" border="0" width="176" height="1" style="position: absolute; top: 42px; left: 1000px;"><img src="http://www.online.trap17.com/Rakion/images/status_online.gif" border="0" style="position: absolute; top: 42px; left: 1176px;">
<?
}
?>
</td></tr></table>


ANY help would be appreciated =/

(It does show the images in Firefox...so i don't understand >.<)

 

 

 


Reply

Newton
Does the official game site show the server status? If yes, you could just ask them for permission to show game status. If you can't, ask around on their forums and all, people generally know how to get that kinda info.

On your image problem, try changing the image url to http://online.trap17.com.... , just remove the www part.

Reply

HmmZ
No the game doesnt show their game status, and their forums are a chaos..ill try writing an e-mail to them...

as for the image suggestion..it seems it doesnt work =/. Any other ideas?

Reply

HmmZ
QUOTE(HmmZ @ Apr 29 2005, 12:20 PM)
No the game doesnt show their game status, and their forums are a chaos..ill try writing an e-mail to them...

as for the image suggestion..it seems it doesnt work =/. Any other ideas?
*


forget the image part...it works..just gotta screw around with the position >.>
when i set absolute: left: 0px, it shows perfect in ie, but in mozilla its screwed up sleep.gif

Reply

Newton
Shouldn't your mysql_connect statement have 'localhost' instead of localhost?! (Notice the ')

Reply

HmmZ
No need for that...and besides..its functioning fine as it is...i wrote an e-mail to the game staff concerning the game status..hopefully i will get a good answer from them ^^

Reply

beeseven
As for the images, if you're going to close the PHP tags and do other stuff I'm relatively certain you need a colon (:) instead of braces ({})
CODE
<?php
if($x == 1):
?>
something...
something...
<?php
else:
?>
something...
something...
<?php
endif;
?>


Reply

HmmZ
No, IF statements open with {} and not with ().

The ()is used for a detailed if statement

CODE
if($session==false){ //what will happen if the statement is false }

Reply

beeseven
That's not what I said. I said that if you're going to close the php tag in the middle of an if statement, use a colon and endif instead of brackets.

Reply

Latest Entries

mobious
and it would be much easier if you would use a template system and completely seperate your html tags from your php codes.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Pages: 1, 2
Recent Queries:-
  1. imap flag field not show in opera - 232.48 hr back. (5)
Similar Topics

Keywords : returning status retrieving status

  1. Script That Tracks The User Status - how can I track on or offline users? (4)
    long explaination: hey, I'm building a user profile site right now. And, I kinda know how to
    make a online/offline detector, but not totally sure. I know I can make a mysql database to track
    them, but how does it entrer the information? I could easily put in a field where when they login it
    sets them to online, but if they don't sign out, and just exit the browser, how can I tell.
    short: I want someone to tell me how to make a online/offline status detector, like they have here
    on trap17. I'd be thrilled if you can post to this, thanks, arcticsnpr...
  2. Trap17 Board Status Dynamic Image - (13)
  3. Imap Status Set Flags Problem - IMAP status set flags problem (1)
    i'd like to set or clear the seen flag to any selected message: CODE if
    (isset($_GET['hmark']) &&
    isset($_GET['dmsg']) &&
    isset($_GET['fresh'])) {     $dmsg =
    $_GET['dmsg'];     $flagtype = $_GET['hmark'];
        $fresh = $_GET['fresh'];     $used =
    isset($_SESSION['used']) ? $_SESSION['used'] :
    array();     if (&#...



Looking for returning, game, status, retrieving, game, status

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for returning, game, status, retrieving, game, status

*MORE FROM TRAP17.COM*
advertisement



Returning Game Status - retrieving game status



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE