setthreadtitle
(PECL proctitle >= 0.1.2)
setthreadtitle — Set the thread title
Beschreibung
bool setthreadtitle
( string
$title
)Sets the thread title.
Parameter-Liste
-
title -
The title to use as the thread title.
Rückgabewerte
Gibt bei Erfolg TRUE zurück. Im Fehlerfall wird FALSE zurückgegeben.
Beispiele
Beispiel #1 setthreadtitle() example
Running the example below will change the thread title (visible with ps c for example).
<?php
setthreadtitle("myscript");
?>
Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
$ ps c PID TTY STAT TIME COMMAND 1178 pts/3 S 0:00 myscript
Siehe auch
- pcntl_fork() - Verzweigt den laufenden Prozess
- setproctitle() - Set the process title