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?