Jump to content
xisto Community
Supa Comix

Browser Game Specific Non N00b Question

Recommended Posts

Ummmmmmmm ... no.

Actually you only need something like this:

$send  = "GET / HTTP/1.1\r\n";	$send .= "Host: http://gameserver/housekeeping.php\r\n";	$send .= "Connection: Close\r\n\r\n";
But after taking a better look at the code I gave you, I realize now that you also need to replace fsockopen( "http://yahoo.com/; ... ) with fsockopen( "<IP-address-of-your-game-server>" ... )

Share this post


Link to post
Share on other sites

Ummmmmmmm ... no.
Actually you only need something like this:

$send  = "GET / HTTP/1.1\r\n";	$send .= "Host: http://gameserver/housekeeping.php\r\n";	$send .= "Connection: Close\r\n\r\n";
But after taking a better look at the code I gave you, I realize now that you also need to replace fsockopen( "http://yahoo.com/; ... ) with fsockopen( "<IP-address-of-your-game-server>" ... )

right and i'd need to use the above code when someone logs in?

Share this post


Link to post
Share on other sites

No.The idea is that you need to kick-start this house keeping process and have only one instance of it running at any point in time.I can imagine that you would have an administration / superuser section for your game, where you pull all kinds of levers to control the game.The above code would be part of a page in this administration section called "Kick-start housekeeping process".The link to this page would be active if the process is not already running, and would be greyed out or missing altogether if it is.Or something to that effect, it's really up to your imagination, personal preference and talent for designing systems.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.