(PECL proctitle >= 0.1.0)
setproctitle — Set the process title
$title
) : voidSets the process title of the current process.
title
The title to use as the process title.
Nu este întoarsă nici o valoare.
Example #1 setproctitle() example
Running the example below will change the process title (visible with ps a for example).
<?php
setproctitle("myscript");
?>
Exemplul de mai sus va afișa ceva similar cu:
$ ps a PID TTY STAT TIME COMMAND 1168 pts/3 S 0:00 myscript