Raised This Month: $ Target: $400
 0% 

Sockets does not send data to php file


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 05-22-2014 , 07:13   Re: Sockets does not send data to php file
Reply With Quote #8

Quote:
Originally Posted by OnePL View Post
solved
not read socket when I opened it in plugin_cfg()
I moved to the plugin_init() and works

I have the next problem, code:

PHP Code:
public Message(id) {
    new 
reason[64], sData[256];
    
read_args(reason63);
    
remove_quotes(reason);
    
trim(reason);
    
ucfirst(reason);

    
formatex(sData255"GET /%s?name=%s&authid=%s&ip=%s&server=%s&reason=%s HTTP/1.1^nHost:%s^r^n^r^n", \
    
FILEnick[id], sid[id], ip[id], ServerreasonHOST);
    
socket_send(socketsDatastrlen(sData));

I have this function under the command /send, I type a reason, but that reason does not send
You're code seems fine. But the code amount is not enough.
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
 



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 09:39.


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