How to modify the process name by php
Editor to share with you how to modify the process name of php, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to understand it!
The method for php to modify the process name: [if (function_exists ('cli_set_process_title')) {cli_set_process_title ("superman php master process");.].
This article operating environment: windows10 system, php 7, thinkpad T480 computer.
How does php set the process name in cli environment? Let's have a look together.
The specific implementation code is as follows:
If (function_exists ('cli_set_process_title')) {cli_set_process_title ("superman php master process");} / / Need proctitle when php