update : 2015.11.03
php.shukuma.com

검색:
 
 
Set the process title

setproctitle

(PECL proctitle >= 0.1.0)

setproctitleSet the process title

설명

void setproctitle ( string $title )

Sets the process title of the current process.

인수

title

The title to use as the process title.

반환값

값을 반환하지 않습니다.

예제

Example #1 setproctitle() example

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

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

위 예제의 출력 예시:

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

참고