Create chat.php

This is the general framework to a chat application I have been building