January 28, 2023


The complete guide to the beginners as well as to the experienced Web Developers

Chat via PHP socket

Download demo code – Download

Download demo code for group chat- Download

  • Extract code to htdoc directory of server
  • php -i must be work from the terminal
  • Open terminal cd “Folder path” (ex. cd /Applications/XAMPP/xamppfiles/htdocs/Chat-Socket-PHP)
  • php -q server.php
  • open link http://localhost/Chat-Socket-PHP/ in browser two tab