Raised This Month: $ Target: $400
 0% 

concmd can't be used in Socket


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
k1nader
Junior Member
Join Date: Dec 2009
Location: China.四川
Old 03-17-2011 , 10:38   concmd can't be used in Socket
Reply With Quote #1

just like title.

HTML Code:
register_concmd("test_cmd", "servertest_cmd");
and this is my php code
PHP Code:
$ip='192.168.0.1';
$port='27015';

$hlsocket = @fsockopen('udp://'.$ip$port);

stream_set_timeout($hlsocket10); //timeout
stream_set_blocking($hlsocketTRUE);


fwrite($hlsocket"\xFF\xFF\xFF\xFF\x54test_cmd\x00");

$packet fread($hlsocket4096);

echo 
$packet;

fclose($hlsocket); 

Last edited by k1nader; 03-17-2011 at 10:58.
k1nader is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode