[QUESTION] SAMP Query PHP Script
#1

Summary: I've been trying to use the sockets code from the sa-mp query script and for some reason it won't work.
PHP код:
$fp = @fsockopen('udp://'.DB_SERVER7777$errno$errstr0.05);
if(!
$fp) echo 'Offline';
else echo 
'Online'close($fp); 
Info: DB_SERVER is a DNS (EX: xxx.gotdns.com)
Problem: No matter what status the server has (online/offline) it only echoes 'Online'.

Anyone here that might tell me what is wrong?
PS: Just started working with sockets...
Reply


Messages In This Thread
[QUESTION] SAMP Query PHP Script - by viKKmaN - 12.02.2011, 10:46
Re: [QUESTION] SAMP Query PHP Script - by Westie - 12.02.2011, 10:55
Re: [QUESTION] SAMP Query PHP Script - by viKKmaN - 12.02.2011, 11:19
Re: [QUESTION] SAMP Query PHP Script - by saiberfun - 12.02.2011, 12:07
Re: [QUESTION] SAMP Query PHP Script - by viKKmaN - 12.02.2011, 12:12
Re: [QUESTION] SAMP Query PHP Script - by saiberfun - 12.02.2011, 12:18

Forum Jump:


Users browsing this thread: 1 Guest(s)