I am trying to create a simple web page that will display a text file's content but the text file needs to be downloaded via IRC (internet relay chat). Currently, I have a PHP script that connects to IRC via fsockopen(), joins a channel, types a string into the channel which in turn prompts me to accept a direct client to client download (the text file).
I don't know how to accept this download and then download it so that I can pass the contents back to my javascript from my PHP script. Can anyone provide any type of guidance or advice?
Thanks