+ Reply to Thread
Results 1 to 5 of 5
Thread: fsockopen available?
-
Members
- Join Date
- Jan 2005
- Posts
- 2
Hi! I want to use a script to check if my teamspeak server is online or offline.
the script it self is this:
<?php
function check_ts($ip, $tcp, $udp, $timeout=1) { //Function for the Check
$fp = @fsockopen($ip, $tcp, $errno, $errstr, $timeout);
if (!$fp) {
$stat = false;
} else {
if (fgets($fp) == "[TS]\r\n") {
fputs($fp, "SEL $udp\r\n");
if (fgets($fp) == "OK\r\n") {
$stat = true;
} else {
$stat = false;
}
} else {
$stat = false;
}
if (is_resource($fp))
@fclose($fp);
return $stat;
}
}
if (check_ts("theunion.gotdns.com", 51234, 8767)) { //Change IP, Query-Port and TS-Port
echo "<FONT COLOR=#00DD00>ONLINE</FONT>";
} else {
echo "<FONT COLOR=#DD0000>OFFLINE</FONT>";
}
?>
But I always get the offline indication.The teamspeak programm is working and
everyone can connect.The guy who made the program told me to ask you if
you support the fsockopen command or if you have it disabled at the
php configuration.Could you please aswer me that?
thank you
-
Members
- Join Date
- Sep 2005
- Posts
- 7
Hi Digitron,
I find that Teamspeak can't be used on shared servers as it's a separate service that has to run on the system.
We are going to see more someone confirms this.
I find that yourself will need a Dedicated Server.
MentorAhosting.biz
"For hosting competent"
Any links or suggestions for thirdparty software/sites should be used at your own risk.
My opinions and recommendations are not neccessarily those of AHosting and AHosting is not responsible
-
Members
- Join Date
- Jan 2005
- Posts
- 2
Dear Mentor
I am running the teamspeak server on my system.The only thing that I want
is to add a page on my site that will indicate if the server is online or offline.
This cannot happen if the administrator has the php.ini file setup with
fsockopen=disable. I made a test account on a free site that I am sure it has
the fsockopen=enabled and the script worked.
You can see it at this address : http://free.pages.at/digitron/union.php
So I was wondering if the administrator can enable this command because
its pity to pay for hosting and use a link to 3rd sites to do my job.
thank you in advance
Stefanos
-
Members
- Join Date
- Sep 2005
- Posts
- 7
Unfortunately I am not a specialist in teamspeak. :unsure:
My suggestion is that you contate bears him of the developer in this link the suport: http://sourceforge.net/support/getsupport....group_id=135177
And contact you Administrador system.
MentorAhosting.biz
"For hosting competent"
Any links or suggestions for thirdparty software/sites should be used at your own risk.
My opinions and recommendations are not neccessarily those of AHosting and AHosting is not responsible
-
Hi digitron:
The function fsockopen() is allowed in the server. We have not enforced any restriction to that function.
As I had a look at the script , I found that due to restriction in the outgoing ports ( egress filtering), your script is not functional.
We had to enforce restrictions to outgoing ports to provide better hosting environment to our valuable clients.
Respectfully,
Mark


LinkBack URL
About LinkBacks



Reply With Quote
