Get the App
SLTechnology News&Howtos  ›  Development  › 

How to modify the process name by php

Shulou Source: shulou.com Published: 2022-06-03 10:17:55 11月15日 Update

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

Tags: Process name article content environment not much code most methods is in more computers knowledge systems industry information information channels channels references processing Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Information NVidia Apple vpn