attempt at making a webchat with php