mIRC Home    About    Download    Register    News    Help

Print Thread
[socket] website (machine a) -> mirc (machine b) #112149 21/02/05 11:53 AM
Joined: Feb 2005
Posts: 1
C
cappie Offline OP
Mostly harmless
OP Offline
Mostly harmless
C
Joined: Feb 2005
Posts: 1
I would like to send data (variables from a php script) to mIRC (I want to put inputted form-data into a channel).

so: user on website -> [data] -> php script (on server) -> internal network -> mIRC (on workstation)

I've tried reading the socket manual and several scripts, but it looks a bit different every time I read it... I just don't get it, I think..

Could somebody explain me how to make a listening socket in mIRC and how to read that data into a variable?

Re: [socket] website (machine a) -> mirc (machine b) #112150 24/02/05 01:35 AM
Joined: Mar 2004
Posts: 540
A
Armada Offline
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Your best bet would be udp sockets, open a udp listen and have a sockread event for that socket
on *:sockread:YOURSOCKETNAME: {
sockread %tmp
echo -a %tmp
}