Ventrilo released some php software to check on server or channel status (so you can see who's in the channel on your webpage). Problem is that it requests the information via an executable which needs to be on the same server as the voice server.
Yesterday i came across an alternative: apparently some1 cracked the ventrilo protocol encoder and written his own version the ventrilo status script in C which some other guy adapted for php. With this script you don't need to have access to the ventrilo executable at all and you can just check the status of any server you like as long as you have the password. So i played around with the php-script a bit and it worked like a charm on my pc. However, when i uploaded to x10hosting i got a blank page and after setting my script to display notices i saw the problem:
NOTICE: fwrite() [function.fwrite]: send of 36 bytes failed with errno=1 Operation not permitted
The code responsible should be:
Where $request->packet is the encoded request.
I'm not at all familiar with socketting other servers with php so i did some searching on the internet. I found some forums where it was suggested it could be caused by the server firewall blocking the port im using (x10hostings firewall, not the vent server). Im trying to connect to a vent server on port 33300. I don't get the socket error however so i guess that i did get a connection.
Does any1 know what causes this? Could it be the firewall? If not, how can i get it working?
thx in advance
Yesterday i came across an alternative: apparently some1 cracked the ventrilo protocol encoder and written his own version the ventrilo status script in C which some other guy adapted for php. With this script you don't need to have access to the ventrilo executable at all and you can just check the status of any server you like as long as you have the password. So i played around with the php-script a bit and it worked like a charm on my pc. However, when i uploaded to x10hosting i got a blank page and after setting my script to display notices i saw the problem:
NOTICE: fwrite() [function.fwrite]: send of 36 bytes failed with errno=1 Operation not permitted
The code responsible should be:
Code:
$sfh = fsockopen( "udp://$ip", $port, $errno, $errstr );
if ( !$sfh ) {
echo("Socket Error: $errno - $errstr\n");
return false;
}
fwrite( $sfh, $request->packet );
I'm not at all familiar with socketting other servers with php so i did some searching on the internet. I found some forums where it was suggested it could be caused by the server firewall blocking the port im using (x10hostings firewall, not the vent server). Im trying to connect to a vent server on port 33300. I don't get the socket error however so i guess that i did get a connection.
Does any1 know what causes this? Could it be the firewall? If not, how can i get it working?
thx in advance