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.

Значення, що повертаються

Не повертає значень.

Приклади

Приклад #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                                                                                                                         

Прогляньте Також

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top