Raised This Month: $ Target: $400
 0% 

concmd can't be used in Socket


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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