PHP:curl_multi_getcontent()的用法_cURL函数
382
2023-12-16
(PHP 5 >= 5.5.0)
cli_set_process_title — Sets the process title
$title
)
Sets the process title visible in tools such as top and ps. This function is available only in CLI mode.
title
The new title.
成功时返回 TRUE
, 或者在失败时返回 FALSE
。
An E_WARNING
will be generated if the operating system
is unsupported.
Example #1 cli_set_process_title() 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...n";
exit(1);
} else {
echo "The process title '$title' for PID $pid has been set for your process!n";
sleep(5);
}
?>
cli_get_process_title() - Returns the current process title
#免责声明#
本站[绿夏技术导航]提供的一切软件、教程和内容信息仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络收集整理,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑或手机中彻底删除上述内容。如果您喜欢该程序或内容,请支持正版,购买注册,得到更好的正版服务。我们非常重视版权问题,如有侵权请邮件[admin@lxwl520.com]与我们联系进行删除处理。敬请谅解!