Answer the question
In order to leave comments, you need to log in
How to replicate the Ratchet Push example?
I wanted to repeat the Ratchet Push example . Download composer. In the project folder, I entered php composer.phar require cboden / ratchet through the console, after which the vendor folder and a couple of files from composer appeared. Installed ZeroMQ, tried two installation options:
1) Downloaded the necessary files from https://pecl.php.net/package/zmq/1.1.3/windows. libzmq.dll unpacked to C:\xampp\php, php_zmq.php to C:\xampp\php\ext. Added the path C:\xampp\php\ext to system variables, restarted the computer, restarted the web server.
2) Downloaded the necessary files from https://pecl.php.net/package/zmq/1.1.3/windows.libzmq.dll unpacked to C:\xampp\php\windowsXamppPhp, php_zmq.php to C:\xampp\php\windowsXamppPhp\ext. Added the path C:\xampp\php\windowsXamppPhp\ext to the system variables, restarted the computer, restarted the web server.
I also tried to throw the libzmq.dll file into the same directory as php_zmq.php.
I was guided by the installation:
wiki.zeromq.org/bindings:php
https://superuser.com/questions/585291/installing-...
After everything, start the xampp server, then entered php push-server.php in the console, but the console gives an error message:
PHP Fatal error: Uncaught Error: Class 'React\ZMQ\Context' not found in C:\xampp\htdocs\test\push-server.php:9
Stack trace:
#0 {main}
thrown in C:\xampp\htdocs \test\push-server.php on line 9
Fatal error: Uncaught Error: Class 'React\ZMQ\Context' not found in C:\xampp\htdocs\test\push-server.php:9
Stack trace:
#0 { main}
thrown in C:\xampp\htdocs\test\push-server.php on line 9
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question