current location:Home > Technical Articles > PHP Framework > Workerman

  • How to access workererman in php
    How to access workererman in php
    How to connect PHP to Workerman: Create a new file start.php, create a Worker in this file to listen to port 2346, use the websocket protocol to communicate to connect Workerman in PHP, and then run this file to start Workerman in PHP.
    Workerman 3634 2019-12-23 16:25:14
  • How to use workerman?
    How to use workerman?
    Usage steps: Create a websocket Worker to maintain a long client connection; create a text Worker internally; open an internal port to facilitate the internal system to push data; push data to the page of uid through workererman; return the push result.
    Workerman 2952 2019-12-23 12:13:55
  • Solution to Chinese garbled code when running workerman using cmd
    Solution to Chinese garbled code when running workerman using cmd
    The Chinese garbled characters when cmd runs Workerman can be solved by changing the cmd window encoding format to utf-8. You can use the command "chcp 65001" to temporarily modify it before running, or you can modify it permanently in the registry.
    Workerman 2794 2019-12-23 11:02:24
  • What to do if workerman introduces db error
    What to do if workerman introduces db error
    Workerman introduces a solution to db errors: add try catch to capture the error when accessing the database. When the error captured is 2006 or 2013, it means that the connection is invalid. At this time, you can reconnect to the database.
    Workerman 2747 2019-12-23 10:47:37
  • How to use workerman in tp5
    How to use workerman in tp5
    How to use Workerman in TP5: 1. Install Workerman. 2. Create server.php in the tp5 root directory. 3. Create the Worker controller of the push module, the path is the same as the path in line3 of server.php. Then run server.php.
    Workerman 4269 2019-12-23 10:35:02
  • How does workerman connect to the database?
    How does workerman connect to the database?
    How to connect Workerman to the database: 1. Install the Workerman/MySQL extension, install it through composer or download the source code directly, and decompress the source code into the project. 2. Obtain the db instance through global variables, and then use Workerman\MySQL\Connection to connect.
    Workerman 3865 2019-12-23 10:21:15
  • Does workerman support coroutines?
    Does workerman support coroutines?
    The worker framework itself does not support coroutines. However, the bottom layer of Workerman supports swoole as an event driver, which means that swoole's coroutine can be used directly in Workerman.
    Workerman 3381 2019-12-23 10:06:28
  • workerman writes mysql connection pool
    workerman writes mysql connection pool
    Workerman is an open source high-performance asynchronous PHP socket instant messaging framework. Supports high concurrency and ultra-high stability. This tutorial introduces how to write mysql connection pool in Workerman. I hope it will be helpful when you use the Workerman framework.
    Workerman 2279 2019-12-19 17:19:11
  • workerman cannot access normally
    workerman cannot access normally
    The solution to the problem that workererman cannot access normally is: 1. In the security group inbound direction, set the port range of workererman; 2. Close the [firewalld] firewall and modify the [/etc/sysconfig/iptables] rules.
    Workerman 2147 2019-12-18 17:44:29
  • tp cannot be started using workererman
    tp cannot be started using workererman
    The reason why tp cannot be started using Workerman is that the port cannot be started due to being occupied. Solution: First use the [netstat] command to check which program occupies the port, then stop the corresponding program and release the port. If the program for the corresponding port cannot be stopped, you can solve the problem by changing the port of [workerman].
    Workerman 2109 2019-12-18 17:10:43
  • What should I do if workerman cannot be closed?
    What should I do if workerman cannot be closed?
    The solution to the problem that Workerman cannot be closed: first find the pid of the Workerman main process; then send the SIGINT signal to the pid; finally, after the Workerman main process receives the SIGINT signal, it executes "Worker::stopAll()" to complete the service stop.
    Workerman 2898 2019-12-18 15:56:51
  • What should I do if workerman cannot be used?
    What should I do if workerman cannot be used?
    Workerman cannot be used because the "stream_socket_server" function is disabled by "php.ini". The solution: first open the "php.ini" file; then find the "disable_functions" item; then delete the "stream" disabled item.
    Workerman 2768 2019-12-18 15:17:59
  • Can workerman always run?
    Can workerman always run?
    Workerman can always run. Start workererman in daemon (daemon) mode to keep running in the background. Start in daemon mode. Workerman continues to run normally in the background after the terminal is closed.
    Workerman 3592 2019-12-16 09:16:36
  • What should I do if workerman cannot socket?
    What should I do if workerman cannot socket?
    Workerman cannot socket because the "stream_socket_server" function is disabled by "php.ini". The solution is to open the "php.ini" file and delete the "stream_socket_server" disabled item.
    Workerman 2348 2019-12-13 11:16:06
  • What should I do if workerman cannot monitor?
    What should I do if workerman cannot monitor?
    The solution to the problem that workererman cannot monitor: first delete "workerman/workerman"; then use the command "workerman/workerman-for-win"; then restart monitoring.
    Workerman 3210 2019-12-13 11:10:24

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28