php-doc-en/reference/info/functions/cli-get-process-title.xml
Sherif Ramadan 97338a7241 Modifying from Revision #330660
- Moving the cli_set_process_title example to the correct page
- Replacing the cli_get_process_title with its own example


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330688 c90b9560-bf6c-de11-be94-00142212c4b1
2013-06-26 22:42:16 +00:00

96 lines
2.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.cli-get-process-title" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>cli_get_process_title</refname>
<refpurpose>Returns the current process title</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>cli_get_process_title</methodname>
<void />
</methodsynopsis>
<para>
Returns the current process title, as set by
<function>cli_set_process_title</function>. Note that this may not exactly
match what is shown in <command>ps</command> or <command>top</command>,
depending on your operating system.
</para>
<para>
This function is available only in
<link linkend="features.commandline">CLI</link> mode.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
&no.function.parameters;
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Return a string with the current process title or &null; on error.
</para>
</refsect1>
<refsect1 role="errors">
&reftitle.errors;
<para>
An <constant>E_WARNING</constant> will be generated if the operating system
is unsupported.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><function>cli_get_process_title</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
echo "Process title: " . cli_get_process_title() . "\n";
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>cli_set_process_title</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->