downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

setthreadtitle> <Proctitle Funciones
Last updated: Fri, 20 May 2011

view this page in

setproctitle

(PECL proctitle >= 0.1.0)

setproctitleSet the process title

Descripción

void setproctitle ( string $title )

Sets the process title of the current process.

Parámetros

title

The title to use as the process title.

Valores devueltos

No devuelve ningún valor.

Ejemplos

Example #1 setproctitle() example

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

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

El resultado del ejemplo sería algo similar a:

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

Ver también



add a note add a note User Contributed Notes setproctitle
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites