PHP web terminal emullation