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

search for in the

xattr> <setproctitle
[edit] Last updated: Fri, 17 May 2013

view this page in

setthreadtitle

(PECL proctitle >= 0.1.2)

setthreadtitleDéfinit le titre du thread

Description

bool setthreadtitle ( string $title )

Définit le titre du thread.

Liste de paramètres

title

Le titre à utiliser comme titre du thread.

Valeurs de retour

Cette fonction retourne TRUE en cas de succès ou FALSE si une erreur survient.

Exemples

Exemple #1 Exemple avec setthreadtitle()

L'exécution de l'exemple ci-dessous modifiera le titre du thread (visible avec la commande ps c par exemple).

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

L'exemple ci-dessus va afficher quelque chose de similaire à :

$ ps c
  PID TTY      STAT   TIME COMMAND
 1178 pts/3    S      0:00 myscript

Voir aussi



add a note add a note User Contributed Notes setthreadtitle - [0 notes]
There are no user contributed notes for this page.

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