php man page for cli_set_process_title

Query: cli_set_process_title

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

CLI_SET_PROCESS_TITLE(3)						 1						  CLI_SET_PROCESS_TITLE(3)

cli_set_process_title - Sets the process title

SYNOPSIS
bool cli_set_process_title (string $title)
DESCRIPTION
Sets the process title visible in tools such as top and ps. This function is available only in CLI mode.
PARAMETERS
o $title - The new title.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
ERRORS
/EXCEPTIONS An E_WARNING will be generated if the operating system is unsupported.
EXAMPLES
Example #1 cli_set_process_title(3) example <?php $title = "My Amazing PHP Script"; $pid = getmypid(); // you can use this to see your process title in ps if (!cli_set_process_title($title)) { echo "Unable to set process title for PID $pid... "; exit(1); } else { echo "The process title '$title' for PID $pid has been set for your process! "; sleep(5); } ?>
SEE ALSO
cli_get_process_title(3), setproctitle(3). PHP Documentation Group CLI_SET_PROCESS_TITLE(3)
Related Man Pages
setproctitle(3) - debian
domdocument.savehtmlfile(3) - php
cli_set_process_title(3) - php
simplexml_import_dom(3) - php
domdocument.savexml(3) - php
Similar Topics in the Unix Linux Community
Format each line of the file
Format CSV file
Loop through awk results
Check if PID exists
Delete columns with a specific title XXX, where the position change in each file