Basic connect and post to chat examples PHP

Thank you for the suggestion, I understand PHP is not the optimal language to use for a chatbot, but it’s the only one I have any familiarity with (and by any I mean a little). Unfortunately we’re stuck on php 5.1, I’m not the admin for our web server and the person who is has been ignoring my requests to upgrade it for over a year now! I’ll have a thorough read of it anyway and see if it’s worth us relocating our hosting.