They don't first they knew the values but when joymax changed it they just kept 3500 even for the new server they are immediately 3500 if I'm correct.
Yes, you can, if you add in the logic for it.Quote:
can we login to silkroad servers with this code?
I change infos and, same.Quote:
Open the index.php and you should see an ip of the gateway server but also a version and locale. You need to change those to the elitesro ones. I also got this error if I only change the ip to use elitesro. The easiest way to get the locale en version is toe add elitesro to edxSilkroadLoader and you can check the version and locale. change it and try it again.
$_REQUEST["host"] = "login4.sro.vn"; $_REQUEST["port"] = 15779; $_REQUEST["locale"] = 39; $_REQUEST["version"] = 36; $_REQUEST["timeout"] = 5;
know any good and cheap hosting to run this script?Quote:
Mabye you should check your firewall settings. I don't know if you're hosting it locally but can you connect to elitesro with the normal launcher?
Hmm I just checked it and server 1 for elitesro also gives me that error so i guess it's offline. but login2 login3 and login4 work fine for me.
@sirout1 Yes you could just upload them to your web host but this server stats pagine does need sockets, BCMATH and MCRYPT so those 3 things should be enabled at the webhost and ofcourse php. but drew explained it in his first post.Code:$_REQUEST["host"] = "login4.sro.vn"; $_REQUEST["port"] = 15779; $_REQUEST["locale"] = 39; $_REQUEST["version"] = 36; $_REQUEST["timeout"] = 5;
<?php
$_REQUEST["host"] = "gwgt1.joymax.com";
$_REQUEST["port"] = 15779;
$_REQUEST["locale"] = 18;
$_REQUEST["version"] = 314;
$_REQUEST["timeout"] = 5;
$db = mysqli_connect(blabla);
if (mysqli_connect_errno() == 0) { //DB-Connection successful
for ($i = 1; $i <= 5; $i++) {
$Timer = microtime(TRUE);
// Execute the server stats page and store the results. This code doesn't change.
ob_start();
include( "ServerStats.php" );
$result = ob_get_contents();
ob_end_clean();
//code that updates the db, definitely works!
//let 10 seconds pass
while (microtime(TRUE) - $Timer <= 10000) {
usleep(500000); //0.5 secs sleeping
}
}
}
?>