Quote:
Originally Posted by LastThief
may i know what is this ?
|
You did not set the "host" parameter. See 'examples.txt' for more information about the parameters.
Quote:
Originally Posted by prot3ctor
Array ( [0] => Error [1] => A connection could not be established. )
|
That means the Gateway Server you are connecting to is physically down or not accessible from your server (like jSRO on a non-jp IP). If you are sure it is up, then sockets may not be enabled for outgoing connections on your host (unlikely, but possible). Try with different hosts in 'examples.txt'.
Quote:
Originally Posted by inv123
My only prob that suddenly after some changes stats changed to ratios, hehe
|
Just multiple the ratio by 3500 before you display and round to a whole number. I provided the ratio in the code just because that's what is in the packet. It's the most 'accurate' to work with, so you can customize the final output if you want cur/max.
-
If you are having other troubles with the scripts, try getting a free host from
[Only registered and activated users can see links. Click Here To Register...] and testing there. That's the test host I used and had no issues with it. Usually, it'll be a problem with how PHP is configured, but since a lot of places do it differently, there's no easy way to debug it with how PHP works. For reference, this is the
[Only registered and activated users can see links. Click Here To Register...] from the test host.