setproctitle
(PECL proctitle >= 0.1.0)
setproctitle — Set the process title
Descrição
void setproctitle
( string
$title
)Sets the process title of the current process.
Parâmetros
-
title -
The title to use as the process title.
Valor Retornado
Não há valor retornado.
Exemplos
Example #1 setproctitle() example
Running the example below will change the process title (visible with ps a for example).
<?php
setproctitle("myscript");
?>
O exemplo acima irá imprimir algo similar à:
$ ps a PID TTY STAT TIME COMMAND 1168 pts/3 S 0:00 myscript
Veja Também
- cli_set_process_title() - Sets the process title
- pcntl_fork() - Forks the currently running process
- setthreadtitle() - Set the thread title