setproctitle

Set the process title

Beschreibung

void setproctitle ( string $title )

Sets the process title of the current process.

Parameter-Liste

title

The title to use as the process title.

Rückgabewerte

Es wird kein Wert zurückgegeben.

Beispiele

Beispiel #1 setproctitle example

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

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

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

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

Siehe auch

  • cli_set_process_title
  • pcntl_fork
  • setthreadtitle