dserban 0 Report post Posted August 11, 2007 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
Supa Comix 0 Report post Posted August 12, 2007 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
dserban 0 Report post Posted August 12, 2007 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