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?)
// 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();
Hi it's me again.
For testing I always used a server of a friend and it always worked.
Now when I wanted to put everything to my server I got errors, sometimes just 1, sometimes more...
This error comes more often.
Code:
Array ( [0] => [1] => Warning: mcrypt_ecb() [function.mcrypt-ecb]: Attempt to use an empty IV, which is NOT recommend in /var/www/***/html/silkroad/serverstats/SilkroadSecurity.php on line 174 [2] => Error [3] => Could not receive data. )
The other one doesn't want to display right now. It's longer containing all mcrypt lines and also the 'Could not receive data.' error at the end.
Before I got another error and the operator of my webspace had to move it to a different server. This is done and I just checked the phpinfo again.
BCMath support: enabled
Sockets Support: enabled
mcrypt support: enabled (but only version 2.5.7, not 2.5.8, can this be the reason?)
Before I got another error and the operator of my webspace had to move it to a different server. This is done and I just checked the phpinfo again.
BCMath support: enabled
Sockets Support: enabled
mcrypt support: enabled (but only version 2.5.7, not 2.5.8, can this be the reason?)
Doubtful, as long as you have a modern MCRYPT it should be ok. Use to get rid of the MCrypt warnings.
It's possible the way a web server is setup it might have all the components needed, but actually performs differently. There's too much going on to really say why it works on some hosts and not on others really. For example, I tested on one free host and it worked fine always but others have tried getting the same from them and it didn't.
It's possible it's something in the code, but there's not much to change really with the socket code. There are a very limited number of ways to use the socket_write and socket_recv functions.
That should give it up to 5 seconds to receive data that select said was there. I'm not sure if it'll actually do anything, but I'll try to mess with some possible changes later when I get back around to PHP stuff.
Can anyone tell me if i can use this with bplaced.net? Or am I wasting my time trying to get it to work? Is the standart freeware bplaced.net server capable of running this?
Can anyone tell me if i can use this with bplaced.net? Or am I wasting my time trying to get it to work? Is the standart freeware bplaced.net server capable of running this?
I'll give it a try later today after my site is activated there. I made an account but the site doesn't load yet.
To anyone that couldn't run the first version, try this second version. The socket functions have been changed to the file socket functions. You still need sockets enabled on the server, but not having regular socket access won't matter as long as file sockets are allowed.
That host, bplaced, allows file sockets, fsockopen, but not regular sockets, socket_connect. I changed a little of the socket code to work with the new style and I think it works as it should: .
However, as with the previous version, this type of code on PHP servers like this isn't really stable so some problems may arise. bplaced only allows a script execution time of 12s, so you won't be able to use this on a lot of servers that have longer delays because the script takes longer to execute. Most sites default to 30s I think, so you might need to try another host if that is a problem.
Silkroad Security API 06/09/2011 - SRO Coding Corner - 5 Replies i was trying to run the server_stats example but it just immediately closeed and i cant figure out why..
also i think i need ti configure the ip or port? where can i do this?
edit: I've found the error.. Index was Outside the bounds of the array line 33
the code:
[HELP]silkroad security 05/09/2011 - SRO Coding Corner - 6 Replies what it silkroad security???
what is the packet analyzing???
Silkroad New security? 01/24/2010 - Silkroad Online - 68 Replies This must be a joke or something another wanna be Game Guard? cus silkroad added a new folder called hackshield to the game directory... lol anyone have any inputs on this? maybe for once they trying to do something lol kinda funny... :rtfm:
[Tips] Silkroad Account Security 08/24/2009 - SRO Guides & Templates - 12 Replies Hey,
I know there are some threads about this out there but I think this will be useful though.
Your password should contain at least 7 letters and/or numbers. Hint: Come up with some really senseless sentence with letters and numbers. Here an example : I look forward to the Simpsos Halloween Special on October 31th., Now take the first letter of every word and your password is: “ilfttshsoo31” For a password like this a bruter needs about 107 years and you can remember it easily.
...
Silkroad Security Video 11/06/2008 - SRO Hacks, Bots, Cheats & Exploits - 10 Replies Hi guys,
i just played a bit with Silkroad and c++.
The result was a Undetected Silkroad Keylogger.
I was Scanning it for fun on Virustotal.com
the result was 1/36
The 1 Antivir who said anythink
was Panda - Suspicous File
Maybe you have the Question now
why did you post this here?