I post here my little master server list in PHP/MySQL and MMF
Hope you enjoy :P
You'll need DialogBox, GetObject, LacewingServer (#14)
PHP : master_server.rar
MMF : ServerEx.mmf
I post here my little master server list in PHP/MySQL and MMF
Hope you enjoy :P
You'll need DialogBox, GetObject, LacewingServer (#14)
PHP : master_server.rar
MMF : ServerEx.mmf
And now the client part, when you try to get the server list :
this looks really useful, but how does it work exactly ?
I don't know how to install the scripts.
It's a bit complicated, do you know PHP/MySQL ?
Well yes, the basic.
How does it works :
-Simply when the server runs, he sends a heartbeat to MySQL through PHP and so applications can retrieve server list using Get Object (using String parsing)
The code is commented, take a look![]()
Oup, i forget the table :/
CREATE TABLE IF NOT EXISTS `server_list` (
`id` int(11) NOT NULL auto_increment,
`server_name` varchar(111) collate latin1_general_ci NOT NULL,
`server_ip` varchar(111) collate latin1_general_ci NOT NULL,
`server_port` int(111) NOT NULL,
`server_key` int(11) NOT NULL,
`server_last_ping` timestamp NOT NULL default '0000-00-00 00:00:00' on update CURRENT_TIMESTAMP,
`is_hamachi` int(1) NOT NULL,
`hamachi_channel` varchar(50) collate latin1_general_ci NOT NULL,
`hamachi_password` varchar(50) collate latin1_general_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `server_key` (`server_key`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;
Hey thanks for the explanation that wasn't really what I wanted to know.
What I wanted to know is how to make it work exactly ?
How to install the scripts ?
Thanks for the help so far.