setproctitle

(PECL proctitle >= 0.1.0)

setproctitleSet the process title

Açıklama

setproctitle ( string $title ) : void

Sets the process title of the current process.

Değiştirgeler

title

The title to use as the process title.

Dönen Değerler

Hiçbir değer dönmez.

Örnekler

Örnek 1 setproctitle() example

Running the example below will change the process title (visible with ps a for example).

<?php
setproctitle
("myscript");
?>

Yukarıdaki örnek şuna benzer bir çıktı üretir:

$ ps a
  PID TTY      STAT   TIME COMMAND
 1168 pts/3    S      0:00 myscript                                                                                                                         

Ayrıca Bakınız