 |
|
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
|

05-22-2014
, 07:13
Re: Sockets does not send data to php file
|
#8
|
Quote:
Originally Posted by OnePL
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(reason, 63); remove_quotes(reason); trim(reason); ucfirst(reason);
formatex(sData, 255, "GET /%s?name=%s&authid=%s&ip=%s&server=%s&reason=%s HTTP/1.1^nHost:%s^r^n^r^n", \ FILE, nick[id], sid[id], ip[id], Server, reason, HOST); socket_send(socket, sData, strlen(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.
__________________
|
|
|
|