Ratchet: hello world example

57 views
Skip to first unread message

phys...@gmail.com

unread,
Sep 17, 2015, 3:23:20 PM9/17/15
to Ratchet


" Your composer file" should be more specific for beginners. It should be the file ~/composer.json mentioned during the installation of Ratchet

"Save this as /src/MyApp/Chat.php. We'll come back to our Chat class soon."

Creating a /src directory doesn't seem to be "kosher" on Linux. What would be the appropriate location for this file? Same thing for the line below.

"Save this script as /bin/chat-server.php. Now, we can run it with the following command in your terminal:"

Does /src and /bin start from the root file system? Or is there a /var/www/php/ directory where we put the /src and /bin?




cboden

unread,
Sep 17, 2015, 3:27:40 PM9/17/15
to Ratchet, phys...@gmail.com
PRs on the documentation are welcome at https://github.com/ratchetphp/socketo.me.  "src" and "bin" are relative to your project not absolute to your system. These are pretty common folder names in PHP projects. 
Reply all
Reply to author
Forward
0 new messages