Board index Off Topic random

toonie (or aanyone else) pls halp =D

You know what this means

toonie (or aanyone else) pls halp =D

Postby sL1k » Feb 16th, '16, 7:20 pm

tryin the q3classes from github to get serverstats

https://github.com/Plunkett/Q3Classes

Now i simply uploaded statusexample.php and q3status.php which should be all required files so far for a simple status test.

tried several ips now and i all time get this result:

Code: Select all
There was a problem getting the server status. Server name: Players: 0/


Am I totally retard or might it be it´s used protocol there is outdated or something o.O

> webhost is running PHP 7.0


if you havent noticed yet: http://www.rb-dev.de
User avatar
sL1k
 
Posts: 75
Joined: Apr 22nd, '14, 11:09 am
Location: trve-town DE

Re: toonie (or aanyone else) pls halp =D

Postby rlx|mini » Feb 17th, '16, 7:26 pm

Did a quick test on php 5.6.3. it works there.
maybe some deprecated stuff in php 7. what does error logging say?
stupid question, u changed the ip and the port? :roll:
You do not have the required permissions to view the files attached to this post.
User avatar
rlx|mini
 
Posts: 86
Joined: Feb 27th, '10, 6:01 pm
Location: Ger

Re: toonie (or aanyone else) pls halp =D

Postby sL1k » Feb 17th, '16, 9:07 pm

rlx|mini wrote:Did a quick test on php 5.6.3. it works there.
maybe some deprecated stuff in php 7. what does error logging say?
stupid question, u changed the ip and the port? :roll:


hrhr ye i´ve changed ip and port. tried several defrag servers and some q3a ffa servers. uhm i could try to downgrade php.

error log.. where exactly do i find that one.
ive just uploaded those two php files to the server via ftp and called the testing page...



meanwhile i´ve downgraded to version 5.6 but still.
im using opera, screenshot below

http://imgur.com/Mrekdej



interesting... works using xampp (php7) on my computer, testing localhost... bla...gettin same information bout profound =)

so well then we can say that its no php version differences and no coding bugs in php files itself. means... could be something missing on hosts apache server, maybe a plugin or anything....

i´ve contacted those service team now =)
User avatar
sL1k
 
Posts: 75
Joined: Apr 22nd, '14, 11:09 am
Location: trve-town DE

Re: toonie (or aanyone else) pls halp =D

Postby rlx|mini » Feb 18th, '16, 7:00 am

Yes pretty sure then, that it is your host.
The class tries to make a socket connection.

1) It is possible that fsockopen is disabled on your host
Code: Select all
<?php
 if(function_exists('fsockopen')) {
      echo "fsockopen function is enabled";
 }
 else {
      echo "fsockopen is not enabled";
 }
 ?>


2) but i think its more plausible that their firwall blocks outgoing socket connections, because of safety reasons
User avatar
rlx|mini
 
Posts: 86
Joined: Feb 27th, '10, 6:01 pm
Location: Ger

Re: toonie (or aanyone else) pls halp =D

Postby sL1k » Feb 18th, '16, 6:03 pm

good idea to test for. Tried both, local and on webhost. fsockopen function is enabled on both. so you could be right about their firewall.

still waiting for support team reply of hoster:)




oh i just got an idea.... could it be that "sitelock" is blocking it? :O
another thing i could try is deactivate ssl
User avatar
sL1k
 
Posts: 75
Joined: Apr 22nd, '14, 11:09 am
Location: trve-town DE

Re: toonie (or aanyone else) pls halp =D

Postby sL1k » Feb 19th, '16, 9:39 pm

okay, question is answered. they dont have ports like 2796* open, cant solve that. required change hoster :))
User avatar
sL1k
 
Posts: 75
Joined: Apr 22nd, '14, 11:09 am
Location: trve-town DE

Re: toonie (or aanyone else) pls halp =D

Postby rlx|mini » Feb 19th, '16, 10:57 pm

okay then is the idea to rewrite the class into curl obsolete :?
User avatar
rlx|mini
 
Posts: 86
Joined: Feb 27th, '10, 6:01 pm
Location: Ger

Re: toonie (or aanyone else) pls halp =D

Postby sL1k » Feb 21st, '16, 2:31 pm

found a way to do it, just registered at gametracker site, added missing servers and used their embedding code =)))

http://rb-dev.de/serverlist/defrag.html
User avatar
sL1k
 
Posts: 75
Joined: Apr 22nd, '14, 11:09 am
Location: trve-town DE


cron