setproctitle

(PECL proctitle >= 0.1.0)
Set the process title
void setproctitle ( string $title )

Sets the process title of the current process.

Parameters:
title

The title to use as the process title.

Returns:

No value is returned.

Examples:
setproctitle() 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() -

pcntl_fork() -

setthreadtitle() -

doc_php
2016-02-24 15:57:02
Comments
Leave a Comment

Please login to continue.