SETPROCTITLE(3) 1 SETPROCTITLE(3)
setproctitle - Set the process title
SYNOPSIS
void setproctitle (string $title)
DESCRIPTION
Sets the process title of the current process.
PARAMETERS
o $title
- The title to use as the process title.
RETURN VALUES
No value is returned.
EXAMPLES
Example #1
setproctitle(3) example
Running the example below will change the process title (visible with ps a for example).
<?php
setproctitle("myscript");
?>
The above example will output something similar to:
$ ps a
PID TTY STAT TIME COMMAND
1168 pts/3 S 0:00 myscript
SEE ALSO
cli_set_process_title(3), pcntl_fork(3), setthreadtitle(3).
PHP Documentation Group SETPROCTITLE(3)