[PHP] Clientless Silkroad Security + ServerStats

06/30/2011 23:24 kevin_owner#31
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.
07/01/2011 01:20 S3cret#32
Alright if theres a new server it auto gets 3500 as max no. of people. If this value is wrong I gonna have to change it manually.
07/01/2011 08:32 lesderid#33
Can't you check it when the server's in Check status?
There should only be one Joymax employee be logged in then.
07/01/2011 20:19 fatihy93#34
can we login to silkroad servers with this code?
07/01/2011 20:29 pushedx#35
Quote:
Originally Posted by fatihy93 View Post
can we login to silkroad servers with this code?
Yes, you can, if you add in the logic for it.

However, it's impractical to use this as a clientless because you'd need to control the server PHP is running on to allow longer script execution as well as allow for more resources to be used.

You'd need a VPS or Dedicated Server that you can setup PHP how it needs to be done. By then, you might as well have just written a C++ clientless to run on that server instead.

At best, this is good for server stats, but that's it really. Other languages and tools would be much more suitable once you had a VPS/Dedicated Server.
07/05/2011 04:05 EuSouHunteR#36
[Only registered and activated users can see links. Click Here To Register...]


Array ( [0] => Error [1] => A connection could not be established. )

what i do?
07/05/2011 09:23 kevin_owner#37
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.
07/05/2011 18:28 sirout1#38
help
just upload the php and ready to do work or something else?
07/05/2011 20:09 EuSouHunteR#39
Quote:
Originally Posted by kevin_owner View Post
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.
I change infos and, same.
07/05/2011 20:57 kevin_owner#40
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.

Code:
	$_REQUEST["host"] = "login4.sro.vn";
	$_REQUEST["port"] = 15779;
	$_REQUEST["locale"] = 39;
	$_REQUEST["version"] = 36;
	$_REQUEST["timeout"] = 5;
@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.
07/05/2011 21:24 EuSouHunteR#41
Quote:
Originally Posted by kevin_owner View Post
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.

Code:
	$_REQUEST["host"] = "login4.sro.vn";
	$_REQUEST["port"] = 15779;
	$_REQUEST["locale"] = 39;
	$_REQUEST["version"] = 36;
	$_REQUEST["timeout"] = 5;
@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.
know any good and cheap hosting to run this script?
07/07/2011 07:38 EuSouHunteR#42
can one help i make good design for stats?
07/13/2011 12:53 S3cret#43
Hi there it's me again.

I wanna update the serverstats all 10 seconds in my db. I wanted to use a cronjob but my server does only allow them in a 1 minute interval. So I thought I could make the updatescript update the stats 5 times (all 10 secs) and close then. I wanted to make use of a for loop and timers but this doesn't work:
Heres the code (is there no way in this board to use an expander?)
PHP Code:
<?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
            
}

        }

    }

?>
WAt the moment when i run this script the page is loading for years and the stats are not updated a single time.

Any idea what could be the issue? I'm really not a pro in php^^

Regards
07/13/2011 14:07 lesderid#44
Quote:
Originally Posted by S3cret View Post
WAt the moment when i run this script the page is loading for years and the stats are not updated a single time.
OMG! How do you know? Can you travel in time?
07/13/2011 14:12 S3cret#45
Quote:
Originally Posted by lesderid View Post
OMG! How do you know? Can you travel in time?
Wow ur so freaking funny. May I expect a serious answer from you or are u just searching for attention?