Proctitle 函数
PHP Manual

setproctitle

(PECL proctitle >= 0.1.0)

setproctitleSet the process title

说明

void setproctitle ( string $title )

Sets the process title of the current process.

参数

title

The title to use as the process title.

返回值

没有返回值。

范例

Example #1 setproctitle() example

Running the example below will change the process title (visible with ps a for example).

<?php
setproctitle
("myscript");
?>

以上例程的输出类似于:

$ ps a
  PID TTY      STAT   TIME COMMAND
 1168 pts/3    S      0:00 myscript                                                                                                                         

参见


Proctitle 函数
PHP Manual