cvs: peardoc /en/core system.xml
| From: | Alexander Merz | Date: | Thu, 24 Jan 2002 15:36:58 +0000 |
| Subject: | cvs: peardoc /en/core system.xml | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2082@lists.php.net to get a copy of this message | ||
alexmerz Thu Jan 24 10:36:58 2002 EDT
Added files:
/peardoc/en/core system.xml
Log:
Add System entry
Index: peardoc/en/core/system.xml +++ peardoc/en/core/system.xml <?xml encoding="iso-8859-1"?> <!-- $Id: system.xml,v 1.1 2002/01/24 15:36:58 alexmerz Exp $ --> <reference id="core.system"> <title>PEAR System</title> <titleabbrev>cross plattform compatible file system functions</titleabbrev> <partintro> <simpara> </simpara> </partintro> <refentry id="core.system.using"> <refnamediv> <refname>Using</refname> <refpurpose>general information</refpurpose> </refnamediv> <refsect1 id="core.system.using.commandline"> <title>Commandline style</title> <para> The <classname>System</classname> functions are called like there commandline pendants <programlisting role="php"> System::rm('-r file1 dir1'); </programlisting> </para> </refsect1> <refsect1 id="core.system.using.compatibility"> <title>Compatiblity</title> <para> <classname>System</classname> provides file system functions. They are named like the file system commands on Unix systems and supports the same options <emphasis>independent</emphasis> of your operation system. </para> <para> At the moment the functions are tested under Linux and Win98. Further reports about compatibility on other systems are welcome. </para> <warning> <para> In earlier versions of PHP 4, <function>unlink</function> may fail on Windows. This bug is already fixed in up-to-date versions. </para> </warning> </refsect1> <refsect1 id="core.system.using.manpages"> <title>Man Pages</title> <para> This manual descripes the parameter of the <classname>System</classname> functions, most only a string. The arguments and options of the specific command are <emphasis>not</emphasis> documented in the manual. Please take a look on the man-pages on unix-like systems <programlisting> <command>man</command> <parameter>commandname</parameter> </programlisting> or when man-pages not avaible on your system, visit the <ulink url="http://unixhelp.ed.ac.uk/alphabetical/index.html"> On-line UNIX manual pages</ulink> </para> </refsect1> </refentry> <refentry id="core.system.rm"> <refnamediv> <refname>System::rm()</refname> <refpurpose>command for removing files</refpurpose> </refnamediv> <refsect1 id="core.system.rm.desc"> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>mixed <function>rm</function></funcdef> <paramdef>string <parameter>$args</parameter></paramdef> </funcprototype> </funcsynopsis> <para> Supports multiple files and dirs and also recursive deletes </para> <para> Parameter <itemizedlist> <listitem> <para> <parameter>$args</parameter> - the arguments for rm </para> </listitem> </itemizedlist> </para> <para> Returns <itemizedlist> <listitem> <para> <parameter>mixed</parameter> - <classname>PEAR_Error</classname> or <parameter>true</parameter> for success </para> </listitem> </itemizedlist> </para> <para> <ulink url="http://unixhelp.ed.ac.uk/CGI/man-cgi?rm"><command>rm</command> man page</ulink> </para> </refsect1> </refentry> <refentry id="core.system.mkdir"> <refnamediv> <refname>System::mkdir()</refname> <refpurpose>make directories</refpurpose> </refnamediv> <refsect1 id="core.system.mkdir.desc"> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>mixed <function>mkdir</function></funcdef> <paramdef>string <parameter>$args</parameter></paramdef> </funcprototype> </funcsynopsis> <para> Parameter <itemizedlist> <listitem> <para> <parameter>$args</parameter> - the name of the director(y|ies) to create </para> </listitem> </itemizedlist> </para> <para> Returns <itemizedlist> <listitem> <para> <parameter>mixed</parameter> - <classname>PEAR_Error</classname> or <parameter>true</parameter> for success </para> </listitem> </itemizedlist> </para> <para> <ulink url="http://unixhelp.ed.ac.uk/CGI/man-cgi?mkdir"><command>mkdir</command> man page</ulink> </para> </refsect1> </refentry> <refentry id="core.system.cat"> <refnamediv> <refname>System::cat()</refname> <refpurpose>concatenate files</refpurpose> </refnamediv> <refsect1 id="core.system.cat.desc"> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>mixed <function>&cat</function></funcdef> <paramdef>string <parameter>$args</parameter></paramdef> </funcprototype> </funcsynopsis> <para> Parameter <itemizedlist> <listitem> <para> <parameter>$args</parameter> - the name of the files to concatenate </para> </listitem> </itemizedlist> </para> <para> Returns <itemizedlist> <listitem> <para> <parameter>mixed</parameter> - <classname>PEAR_Error</classname> ot the content of the concatenate files </para> </listitem> </itemizedlist> </para> <para> <ulink url="http://unixhelp.ed.ac.uk/CGI/man-cgi?cat"><command>cat</command> man page</ulink> </para> </refsect1> <refsect1 id="core.system.cat.example"> <title>Example</title> <programlisting role="php"> <![CDATA[ $var = System::cat('sample.txt test.txt'); System::cat('sample.txt test.txt > final.txt'); System::cat('sample.txt test.txt >> final.txt'); ]]> </programlisting> </refsect1> </refentry> <refentry id="core.system.mktemp"> <refnamediv> <refname>System::mktemp()</refname> <refpurpose>creates temporal files or directories</refpurpose> </refnamediv> <refsect1 id="core.system.mktemp.desc"> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>mixed <function>mktemp</function></funcdef> <paramdef>string <parameter>$args</parameter></paramdef> </funcprototype> </funcsynopsis> <para> Parameter <itemizedlist> <listitem> <para> <parameter>$args</parameter> - the arguments, see the <link linkend="core.system.mktemp.example">"Example" section</link> <itemizedlist> <listitem> <para> <parameter>prefix</parameter> - The string that will be prepended to the temp name (defaults to "tmp"). </para> </listitem> <listitem> <para> <parameter>-d</parameter> - A temporal dir will be created instead of a file. </para> </listitem> <listitem> <para> <parameter>-t</parameter> - The target dir where the temporal file or dir will be created. If this param is missing by default the enviroment variables <parameter>TMP</parameter> on Windows or <parameter>TMPDIR</parameter> in Unix will be used. If these variables are also missing <parameter>c:\windows\temp</parameter> or <parameter>/tmp</parameter> will be used. </para> </listitem> </itemizedlist> </para> </listitem> </itemizedlist> </para> <para> Returns <itemizedlist> <listitem> <para> <parameter>mixed</parameter> - <classname>PEAR_Error</classname> or the full path of the created file or dir </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="core.system.mktemp.example"> <title>Example</title> <programlisting role="php"> <![CDATA[ $tempfile = System::mktemp("prefix"); $tempdir = System::mktemp("-d prefix"); $tempfile = System::mktemp(); $tempfile = System::mktemp("-t /var/tmp prefix"); ]]> </programlisting> </refsect1> </refentry> </reference> <!-- 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 sgml-parent-document:nil sgml-default-dtd-file:"../../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 -->
Index: peardoc/en/core/system.xml +++ peardoc/en/core/system.xml <?xml encoding="iso-8859-1"?> <!-- $Id: system.xml,v 1.1 2002/01/24 15:36:58 alexmerz Exp $ --> <reference id="core.system"> <title>PEAR System</title> <titleabbrev>cross plattform compatible file system functions</titleabbrev> <partintro> <simpara> </simpara> </partintro> <refentry id="core.system.using"> <refnamediv> <refname>Using</refname> <refpurpose>general information</refpurpose> </refnamediv> <refsect1 id="core.system.using.commandline"> <title>Commandline style</title> <para> The <classname>System</classname> functions are called like there commandline pendants <programlisting role="php"> System::rm('-r file1 dir1'); </programlisting> </para> </refsect1> <refsect1 id="core.system.using.compatibility"> <title>Compatiblity</title> <para> <classname>System</classname> provides file system functions. They are named like the file system commands on Unix systems and supports the same options <emphasis>independent</emphasis> of your operation system. </para> <para> At the moment the functions are tested under Linux and Win98. Further reports about compatibility on other systems are welcome. </para> <warning> <para> In earlier versions of PHP 4, <function>unlink</function> may fail on Windows. This bug is already fixed in up-to-date versions. </para> </warning> </refsect1> <refsect1 id="core.system.using.manpages"> <title>Man Pages</title> <para> This manual descripes the parameter of the <classname>System</classname> functions, most only a string. The arguments and options of the specific command are <emphasis>not</emphasis> documented in the manual. Please take a look on the man-pages on unix-like systems <programlisting> <command>man</command> <parameter>commandname</parameter> </programlisting> or when man-pages not avaible on your system, visit the <ulink url="http://unixhelp.ed.ac.uk/alphabetical/index.html"> On-line UNIX manual pages</ulink> </para> </refsect1> </refentry> <refentry id="core.system.rm"> <refnamediv> <refname>System::rm()</refname> <refpurpose>command for removing files</refpurpose> </refnamediv> <refsect1 id="core.system.rm.desc"> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>mixed <function>rm</function></funcdef> <paramdef>string <parameter>$args</parameter></paramdef> </funcprototype> </funcsynopsis> <para> Supports multiple files and dirs and also recursive deletes </para> <para> Parameter <itemizedlist> <listitem> <para> <parameter>$args</parameter> - the arguments for rm </para> </listitem> </itemizedlist> </para> <para> Returns <itemizedlist> <listitem> <para> <parameter>mixed</parameter> - <classname>PEAR_Error</classname> or <parameter>true</parameter> for success </para> </listitem> </itemizedlist> </para> <para> <ulink url="http://unixhelp.ed.ac.uk/CGI/man-cgi?rm"><command>rm</command> man page</ulink> </para> </refsect1> </refentry> <refentry id="core.system.mkdir"> <refnamediv> <refname>System::mkdir()</refname> <refpurpose>make directories</refpurpose> </refnamediv> <refsect1 id="core.system.mkdir.desc"> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>mixed <function>mkdir</function></funcdef> <paramdef>string <parameter>$args</parameter></paramdef> </funcprototype> </funcsynopsis> <para> Parameter <itemizedlist> <listitem> <para> <parameter>$args</parameter> - the name of the director(y|ies) to create </para> </listitem> </itemizedlist> </para> <para> Returns <itemizedlist> <listitem> <para> <parameter>mixed</parameter> - <classname>PEAR_Error</classname> or <parameter>true</parameter> for success </para> </listitem> </itemizedlist> </para> <para> <ulink url="http://unixhelp.ed.ac.uk/CGI/man-cgi?mkdir"><command>mkdir</command> man page</ulink> </para> </refsect1> </refentry> <refentry id="core.system.cat"> <refnamediv> <refname>System::cat()</refname> <refpurpose>concatenate files</refpurpose> </refnamediv> <refsect1 id="core.system.cat.desc"> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>mixed <function>&cat</function></funcdef> <paramdef>string <parameter>$args</parameter></paramdef> </funcprototype> </funcsynopsis> <para> Parameter <itemizedlist> <listitem> <para> <parameter>$args</parameter> - the name of the files to concatenate </para> </listitem> </itemizedlist> </para> <para> Returns <itemizedlist> <listitem> <para> <parameter>mixed</parameter> - <classname>PEAR_Error</classname> ot the content of the concatenate files </para> </listitem> </itemizedlist> </para> <para> <ulink url="http://unixhelp.ed.ac.uk/CGI/man-cgi?cat"><command>cat</command> man page</ulink> </para> </refsect1> <refsect1 id="core.system.cat.example"> <title>Example</title> <programlisting role="php"> <![CDATA[ $var = System::cat('sample.txt test.txt'); System::cat('sample.txt test.txt > final.txt'); System::cat('sample.txt test.txt >> final.txt'); ]]> </programlisting> </refsect1> </refentry> <refentry id="core.system.mktemp"> <refnamediv> <refname>System::mktemp()</refname> <refpurpose>creates temporal files or directories</refpurpose> </refnamediv> <refsect1 id="core.system.mktemp.desc"> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>mixed <function>mktemp</function></funcdef> <paramdef>string <parameter>$args</parameter></paramdef> </funcprototype> </funcsynopsis> <para> Parameter <itemizedlist> <listitem> <para> <parameter>$args</parameter> - the arguments, see the <link linkend="core.system.mktemp.example">"Example" section</link> <itemizedlist> <listitem> <para> <parameter>prefix</parameter> - The string that will be prepended to the temp name (defaults to "tmp"). </para> </listitem> <listitem> <para> <parameter>-d</parameter> - A temporal dir will be created instead of a file. </para> </listitem> <listitem> <para> <parameter>-t</parameter> - The target dir where the temporal file or dir will be created. If this param is missing by default the enviroment variables <parameter>TMP</parameter> on Windows or <parameter>TMPDIR</parameter> in Unix will be used. If these variables are also missing <parameter>c:\windows\temp</parameter> or <parameter>/tmp</parameter> will be used. </para> </listitem> </itemizedlist> </para> </listitem> </itemizedlist> </para> <para> Returns <itemizedlist> <listitem> <para> <parameter>mixed</parameter> - <classname>PEAR_Error</classname> or the full path of the created file or dir </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="core.system.mktemp.example"> <title>Example</title> <programlisting role="php"> <![CDATA[ $tempfile = System::mktemp("prefix"); $tempdir = System::mktemp("-d prefix"); $tempfile = System::mktemp(); $tempfile = System::mktemp("-t /var/tmp prefix"); ]]> </programlisting> </refsect1> </refentry> </reference> <!-- 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 sgml-parent-document:nil sgml-default-dtd-file:"../../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 -->