2014-09-05 07:44:07 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 09:08:43 +00:00
|
|
|
<!-- $Revision$ -->
|
2020-12-05 14:30:42 +00:00
|
|
|
<refentry xml:id="function.convert-uuencode" xmlns="http://docbook.org/ns/docbook">
|
2004-05-01 12:30:23 +00:00
|
|
|
<refnamediv>
|
2004-05-01 23:10:35 +00:00
|
|
|
<refname>convert_uuencode</refname>
|
2007-06-11 00:50:00 +00:00
|
|
|
<refpurpose>Uuencode a string</refpurpose>
|
2004-05-01 12:30:23 +00:00
|
|
|
</refnamediv>
|
2007-06-11 00:50:48 +00:00
|
|
|
|
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
2004-05-01 12:30:23 +00:00
|
|
|
<methodsynopsis>
|
2020-12-05 14:30:42 +00:00
|
|
|
<type>string</type><methodname>convert_uuencode</methodname>
|
|
|
|
<methodparam><type>string</type><parameter>string</parameter></methodparam>
|
2004-05-01 12:30:23 +00:00
|
|
|
</methodsynopsis>
|
2004-07-06 12:00:31 +00:00
|
|
|
<para>
|
|
|
|
<function>convert_uuencode</function> encodes a string using the uuencode
|
|
|
|
algorithm.
|
|
|
|
</para>
|
|
|
|
<para>
|
2017-11-20 20:39:29 +00:00
|
|
|
Uuencode translates all strings (including binary data) into printable
|
2004-08-13 01:00:48 +00:00
|
|
|
characters, making them safe for network transmissions. Uuencoded data is
|
2004-07-06 12:00:31 +00:00
|
|
|
about 35% larger than the original.
|
|
|
|
</para>
|
2018-05-05 12:14:27 +00:00
|
|
|
<note>
|
|
|
|
<simpara>
|
|
|
|
<function>convert_uuencode</function> neither produces the <literal>begin</literal>
|
|
|
|
nor the <literal>end</literal> line, which are part of uuencoded <emphasis>files</emphasis>.
|
|
|
|
</simpara>
|
|
|
|
</note>
|
2007-06-11 00:50:48 +00:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="parameters">
|
|
|
|
&reftitle.parameters;
|
|
|
|
<para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
2020-12-05 14:30:42 +00:00
|
|
|
<term><parameter>string</parameter></term>
|
2007-06-11 00:50:48 +00:00
|
|
|
<listitem>
|
|
|
|
<para>
|
2014-12-26 17:47:24 +00:00
|
|
|
The data to be encoded.
|
2007-06-11 00:50:48 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
|
|
|
<para>
|
2020-12-05 14:30:42 +00:00
|
|
|
Returns the uuencoded data.
|
2007-06-11 00:50:48 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
2020-12-05 14:30:42 +00:00
|
|
|
<refsect1 role="changelog">
|
|
|
|
&reftitle.changelog;
|
|
|
|
<informaltable>
|
|
|
|
<tgroup cols="2">
|
|
|
|
<thead>
|
|
|
|
<row>
|
|
|
|
<entry>&Version;</entry>
|
|
|
|
<entry>&Description;</entry>
|
|
|
|
</row>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<row>
|
|
|
|
<entry>8.0.0</entry>
|
|
|
|
<entry>
|
|
|
|
Prior to this version, trying to convert an empty string returned &false;
|
|
|
|
for no particular reason.
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</informaltable>
|
|
|
|
</refsect1>
|
|
|
|
|
2007-06-11 00:50:48 +00:00
|
|
|
<refsect1 role="examples">
|
|
|
|
&reftitle.examples;
|
2004-07-06 12:00:31 +00:00
|
|
|
<para>
|
|
|
|
<example>
|
|
|
|
<title><function>convert_uuencode</function> example</title>
|
|
|
|
<programlisting role="php">
|
|
|
|
<![CDATA[
|
|
|
|
<?php
|
|
|
|
$some_string = "test\ntext text\r\n";
|
2004-05-01 12:30:23 +00:00
|
|
|
|
2004-07-06 12:00:31 +00:00
|
|
|
echo convert_uuencode($some_string);
|
|
|
|
?>
|
|
|
|
]]>
|
|
|
|
</programlisting>
|
2018-05-05 12:14:27 +00:00
|
|
|
&example.outputs;
|
|
|
|
<screen>
|
|
|
|
<![CDATA[
|
|
|
|
0=&5S=`IT97AT('1E>'0-"@``
|
|
|
|
`
|
|
|
|
]]>
|
|
|
|
</screen>
|
2004-07-06 12:00:31 +00:00
|
|
|
</example>
|
|
|
|
</para>
|
2007-06-11 00:50:48 +00:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="seealso">
|
|
|
|
&reftitle.seealso;
|
2004-07-06 12:00:31 +00:00
|
|
|
<para>
|
2007-06-11 00:50:48 +00:00
|
|
|
<simplelist>
|
|
|
|
<member><function>convert_uudecode</function></member>
|
|
|
|
<member><function>base64_encode</function></member>
|
|
|
|
</simplelist>
|
2004-07-06 12:00:31 +00:00
|
|
|
</para>
|
2004-05-01 12:30:23 +00:00
|
|
|
</refsect1>
|
2007-06-11 00:50:48 +00:00
|
|
|
|
2004-05-01 12:30:23 +00:00
|
|
|
</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
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2004-05-01 12:30:23 +00:00
|
|
|
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
|
|
|
|
-->
|