script to send game chat to web service?

Hi, im wondering is there a way to take game chat and send it to something like a php web server to view the chat from online?

You could use

http.Fetch or

http.Post to send data to webserver, or use mysql.

I would not suggest using any of the http functions, use Sockets or MySQL, and then make the webscript either use AJAX, or refresh after X Seconds/Minutes, so you save bandwidth. (AJAX preffered, since it can refresh instantly without refreshing the page blah blah blah)