I need a specific serverlist script in php.
I need it to update a list of live D3 servers, and send that information into a text file in this format:
servername,ip,port,mode,#ofplayersingame,max#ofplayersingame,mapname
servername,ip,port,mode,#ofplayersingame,max#ofplayersingame,mapname
servername,ip,port,mode,#ofplayersingame,max#ofplayersingame,mapname
servername,ip,port,mode,#ofplayersingame,max#ofplayersingame,mapname
(each line should appear something like this:
2v2 Descent.cx,64.238.111.11,2100,Team Anarchy,0,4,indika.mn3
...)
The path for the output file would be
/files/webtext/serverlist.inc.txt
Its for use in our new website, which is nearing completion. Can anyone help with that?
Serverlist script
you run the risk of flooding the servers with query requests. updating at a given interval makes more sense, than updating whenever someone requests a page, especially if more than one person requests a page at the same time.Capm wrote:If it updated whenever the page was loaded, that would work good too.