cvs: peardoc /en/package/networking/net-ftp ls.xml mdtm.xml mkdir.xml net-ftp.xml put.xml putrecursive.xml pwd.xml
| From: | Christophe Gesch� | Date: | Tue, 16 Jan 2007 07:39:15 +0000 |
| Subject: | cvs: peardoc /en/package/networking/net-ftp ls.xml mdtm.xml mkdir.xml net-ftp.xml put.xml putrecursive.xml pwd.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-9320@lists.php.net to get a copy of this message | ||
moosh Tue Jan 16 07:39:15 2007 UTC
Modified files:
/peardoc/en/package/networking/net-ftp ls.xml mkdir.xml
putrecursive.xml put.xml
net-ftp.xml mdtm.xml pwd.xml
Log:
- indent
http://cvs.php.net/viewvc.cgi/peardoc/en/package/networking/net-ftp/ls.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/en/package/networking/net-ftp/ls.xml diff -u peardoc/en/package/networking/net-ftp/ls.xml:1.2 peardoc/en/package/networking/net-ftp/ls.xml:1.3 --- peardoc/en/package/networking/net-ftp/ls.xml:1.2 Sun Aug 24 15:29:00 2003 +++ peardoc/en/package/networking/net-ftp/ls.xml Tue Jan 16 07:39:15 2007 @@ -1,155 +1,164 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Id: ls.xml,v 1.3 2007/01/16 07:39:15 moosh Exp $ --> +<!-- $Revision: 1.3 $ --> <refentry id="package.networking.net-ftp.ls"> - <refnamediv> - <refname>Net_FTP::ls()</refname> - <refpurpose>returns the listing of a directory in a specified way.</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'Net/FTP.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>mixed <function>Net_FTP::ls</function></funcdef> - <paramdef> - string <parameter><optional>$dir = null</optional></parameter> - </paramdef> - <paramdef> - string <parameter><optional>$mode = <constant>NET_FTP_DIRS_FILES</constant></optional></parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.networking.net-ftp.ls.desc"> - &title.desc; - <para> - this function gives you a listing of either the files / directories / both or an unformated - array (like the PHP function ftp_rawlist()). - </para> - </refsect1> - <refsect1 id="package.networking.net-finger.ls.parameter"> - &title.param; - <para> - <itemizedlist> - <listitem> - <para> - <parameter>string <optional>$dir = null</optional></parameter> - The directory to list. You can - either use a relative or an absolute path. This optional parameter will be set to the - current path. - </para> - </listitem> - <listitem> - <para> - <parameter><optional>int $mode = <constant>NET_FTP_DIRS_FILES</constant></optional></parameter> - - A constant representing the nodes list (directories, files, both or a ram directory - listing). This parameter is determined by the constants ( - see: <link linkend="package.networking.net-ftp.constants">Constants</link>). This parameter is - optional and will be set for listing directories and files structured in an array. - </para> - </listitem> - </itemizedlist> - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.ls.return"> - &title.returns; - <para> - <parameter>mixed</parameter> - a directory listing in the form you determine on success, - otherwise PEAR::Error. - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.ls.throws"> - &title.throws; - <para> - Several errors may be returned by ls. The errornumber is unspecific (until now) and will not - tell you anything about the errormessage. Possible errors are: - </para> - - - + <refnamediv> + <refname>Net_FTP::ls()</refname> + <refpurpose>returns the listing of a directory in a specified way.</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'Net/FTP.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>mixed <function>Net_FTP::ls</function></funcdef> + <paramdef> + string <parameter><optional>$dir = null</optional></parameter> + </paramdef> + <paramdef> + string <parameter><optional>$mode = <constant>NET_FTP_DIRS_FILES</constant></optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.networking.net-ftp.ls.desc"> + &title.desc; + <para> + this function gives you a listing of either the files / directories / both + or an unformated array (like the PHP function ftp_rawlist()). + </para> + </refsect1> + <refsect1 id="package.networking.net-finger.ls.parameter"> + &title.param; + <para> + <itemizedlist> + <listitem> <para> - <table> - <title>&title.throws.errortable;</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Error message</entry> - <entry>Description</entry> - <entry>Solution</entry> - </row> - </thead> - - <tbody> - <row> - <entry> - Raw directory-list in wrong format. - </entry> - <entry> - The format given by the server on PHP function ftp_rawlist()was wrong. Check if the - directory you wanted to be listed is correct and you have access to listing it. - </entry> - <entry> - Specify a correct directory path (eg. <constant>/my/file/path/</constant>, <constant>../</constant>) - and check (maybe change) the rights on it. - </entry> - </row> - <row> - <entry> - Could not get last-modification-date of '$file'. - </entry> - <entry> - The last-modification date could not be determined by PHP. Reasons for this might be - that your FTP-server does not support the used command or that you gave the function a - non existent file as reference. - </entry> - <entry> - <itemizedlist> - <listitem> - <simpara>check the given file for existence</simpara> - </listitem> - <listitem> - <simpara>contact the FTP server's admin</simpara> - </listitem> - </itemizedlist> - </entry> - </row> - - - <row> - <entry> - Date-format failed on timestamp '$res'. - </entry> - <entry> - The given format-string was not well formated. - </entry> - <entry> - Check the documentation of the PHP function date(). - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.ls.note"> - &title.note; - ¬e.notstatic; - </refsect1> - <refsect1 id="package.networking.net-ftp.ls.example"> - &title.example; - <example> - <title>Using <function>ls</function></title> - <programlisting role="php"> - <![CDATA[ + <parameter>string <optional>$dir = null</optional></parameter> - The directory to list. You can + either use a relative or an absolute path. This optional parameter will be set to the + current path. + </para> + </listitem> + <listitem> + <para> + <parameter> + <optional>int $mode = <constant>NET_FTP_DIRS_FILES</constant></optional> + </parameter> + - A constant representing the nodes list + (directories, files, both or a ram directory listing). + + This parameter is determined by the constants + (see: <link linkend="package.networking.net-ftp.constants">Constants</link>). + + This parameter is optional and will be set for + listing directories and files structured in an array. + </para> + </listitem> + </itemizedlist> + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.ls.return"> + &title.returns; + <para> + <parameter>mixed</parameter> + - a directory listing in the form you determine on success, + otherwise PEAR::Error. + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.ls.throws"> + &title.throws; + <para> + Several errors may be returned by ls. + + The errornumber is unspecific (until now) and will not + tell you anything about the errormessage. + + Possible errors are: + </para> + <para> + <table> + <title>&title.throws.errortable;</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Error message</entry> + <entry>Description</entry> + <entry>Solution</entry> + </row> + </thead> + + <tbody> + <row> + <entry> + Raw directory-list in wrong format. + </entry> + <entry> + The format given by the server on PHP function ftp_rawlist()was wrong. Check if the + directory you wanted to be listed is correct and you have access to listing it. + </entry> + <entry> + Specify a correct directory path (eg. <constant>/my/file/path/</constant>, <constant>../</constant>) + and check (maybe change) the rights on it. + </entry> + </row> + <row> + <entry> + Could not get last-modification-date of '$file'. + </entry> + <entry> + The last-modification date could not be determined by PHP. Reasons for this might be + that your FTP-server does not support the used command or that you gave the function a + non existent file as reference. + </entry> + <entry> + <itemizedlist> + <listitem> + <simpara>check the given file for existence</simpara> + </listitem> + <listitem> + <simpara>contact the FTP server's admin</simpara> + </listitem> + </itemizedlist> + </entry> + </row> + + + <row> + <entry> + Date-format failed on timestamp '$res'. + </entry> + <entry> + The given format-string was not well formated. + </entry> + <entry> + Check the documentation of the PHP function date(). + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.ls.note"> + &title.note; + ¬e.notstatic; + </refsect1> + <refsect1 id="package.networking.net-ftp.ls.example"> + &title.example; + <example> + <title>Using <function>ls</function></title> + <programlisting role="php"> + <![CDATA[ <?php - - var_dump($test->ls('/foo/bar')); - + + var_dump($test->ls('/foo/bar')); + ?> -]]> - </programlisting> - </example> - </refsect1> - </refentry> +]]> + </programlisting> + </example> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/peardoc/en/package/networking/net-ftp/mkdir.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/en/package/networking/net-ftp/mkdir.xml diff -u peardoc/en/package/networking/net-ftp/mkdir.xml:1.2 peardoc/en/package/networking/net-ftp/mkdir.xml:1.3 --- peardoc/en/package/networking/net-ftp/mkdir.xml:1.2 Sun Aug 24 15:29:00 2003 +++ peardoc/en/package/networking/net-ftp/mkdir.xml Tue Jan 16 07:39:15 2007 @@ -1,82 +1,100 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Id: mkdir.xml,v 1.3 2007/01/16 07:39:15 moosh Exp $ --> +<!-- $Revision: 1.3 $ --> <refentry id="package.networking.net-ftp.mkdir"> - <refnamediv> - <refname>Net_FTP::mkdir()</refname> - <refpurpose>creates a new directory.</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'Net/FTP.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>mixed <function>Net_FTP::mkdir</function></funcdef> - <paramdef> - string <parameter>$directory</parameter> - </paramdef> - <paramdef> - bool <parameter><optional>$recursive = false</optional></parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.networking.net-ftp.mkdir.desc"> - &title.desc; - <para> - Creates a new directory on the FTP server. You can give this function either - a relative or an absolute path as the first parameter. The second (optional) - parameter lets you create directories recursively (meaning you can create - './my/new/dir' even if '/my' doesn't exist. All 3 directories would be created). - </para> - </refsect1> - <refsect1 id="package.networking.net-finger.mkdir.parameter"> - &title.param; - <para> - <itemizedlist> - <listitem> - <para> - <parameter>string $directory</parameter> - The directory you want to create. This can - either be an absolute path (e.g. '/home/mydir') or a relative one (e.g. 'mydir'). - </para> - </listitem> - </itemizedlist> - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.mkdir.return"> - &title.returns; - <para> - <parameter>mixed</parameter> - true on success, otherwise PEAR::Error. - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.mkdir.throws"> - &title.throws; - <para> - The returned &class.pear-error; object in case of an error - is specific. There is only one errornumber which may occur. The message given by this error - will contain the directory where the error occurred in "Creation of '$dir' failed". - operation fails. - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.mkdir.note"> - &title.note; - ¬e.notstatic; - </refsect1> - <refsect1 id="package.networking.net-ftp.mkdir.example"> - &title.example; - <example> - <title>Using <function>mkdir</function></title> - <programlisting role="php"> - <![CDATA[ + <refnamediv> + <refname>Net_FTP::mkdir()</refname> + <refpurpose>creates a new directory.</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'Net/FTP.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>mixed <function>Net_FTP::mkdir</function></funcdef> + <paramdef> + string <parameter>$directory</parameter> + </paramdef> + <paramdef> + bool <parameter><optional>$recursive = false</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.networking.net-ftp.mkdir.desc"> + &title.desc; + <para> + Creates a new directory on the FTP server. + + You can give this function either a relative + or an absolute path as the first parameter. + + The second (optional) parameter lets you create directories recursively + + (meaning you can create './my/new/dir' even if '/my' doesn't exist. + + All 3 directories would be created + ). + </para> + </refsect1> + <refsect1 id="package.networking.net-finger.mkdir.parameter"> + &title.param; + <para> + <itemizedlist> + <listitem> + <para> + <parameter>string $directory</parameter> + - The directory you want to create. + + This can either be an absolute path + (e.g. '/home/mydir') + or a relative one + (e.g. 'mydir'). + </para> + </listitem> + </itemizedlist> + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.mkdir.return"> + &title.returns; + <para> + <parameter>mixed</parameter> + - true on success, otherwise PEAR::Error. + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.mkdir.throws"> + &title.throws; + <para> + The returned &class.pear-error; object in case of an error is specific. + + There is only one errornumber which may occur. + + The message given by this error will contain the directory + where the error occurred in "Creation of '$dir' failed". + + operation fails. + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.mkdir.note"> + &title.note; + ¬e.notstatic; + </refsect1> + <refsect1 id="package.networking.net-ftp.mkdir.example"> + &title.example; + <example> + <title>Using <function>mkdir</function></title> + <programlisting role="php"> + <![CDATA[ <?php - - $test->mkdir('../mydir'); + + $test->mkdir('../mydir'); ?> -]]> - </programlisting> - </example> - </refsect1> - </refentry> +]]> + </programlisting> + </example> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -95,4 +113,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/peardoc/en/package/networking/net-ftp/putrecursive.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/en/package/networking/net-ftp/putrecursive.xml diff -u peardoc/en/package/networking/net-ftp/putrecursive.xml:1.2 peardoc/en/package/networking/net-ftp/putrecursive.xml:1.3 --- peardoc/en/package/networking/net-ftp/putrecursive.xml:1.2 Sun Aug 24 15:29:00 2003 +++ peardoc/en/package/networking/net-ftp/putrecursive.xml Tue Jan 16 07:39:15 2007 @@ -1,150 +1,161 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Id: putrecursive.xml,v 1.3 2007/01/16 07:39:15 moosh Exp $ --> +<!-- $Revision: 1.3 $ --> <refentry id="package.networking.net-ftp.putrecursive"> - <refnamediv> - <refname>Net_FTP::putRecursive()</refname> - <refpurpose>upload a whole directory to the FTP server.</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'Net/FTP.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>mixed <function>Net_FTP::putrecursive</function></funcdef> - <paramdef> - string <parameter>$local_path</parameter> - </paramdef> - <paramdef> - string <parameter>$remote_path</parameter> - </paramdef> - <paramdef> - bool <parameter><optional>$overwrite = false</optional></parameter> - </paramdef> - <paramdef> - int <parameter><optional>$mode = null</optional></parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.networking.net-ftp.putrecursive.desc"> - &title.desc; - <para> - This uploads a whole directory to the FTP server from the computer your script runs on. - </para> - </refsect1> - <refsect1 id="package.networking.net-finger.putrecursive.parameter"> - &title.param; - <para> - <itemizedlist> - <listitem> - <para> - <parameter>string $local_path</parameter> - - The source directory you'd like to upload. You can specify this with either an absolute path - or a path relative to the scripts directory. (Beware: The script directory is - determined by the called script, if you use includes!) - </para> - </listitem> - <listitem> - <para> - <parameter>string $remote_path</parameter> - The path you'd like to - upload to. This could either be an absolute or relative path to a directory. - </para> - </listitem> - <listitem> - <para> - <parameter><optional>bool $overwrite = false</optional></parameter> - - Whether to overwrite the remote directory if it exists, or not. if not set the directory - will not be overwritten. - </para> - </listitem> - <listitem> - <para> - <parameter><optional>int $mode = null</optional></parameter> - - This has to be one of the constants <constant>FTP_ASCII</constant> or - <constant>FTP_BINARY</constant>. if not specified, the class will - try to determine the mode from the file extensions (from extensions.ini) or - fall back to the standard transfer mode (attribute). - </para> - </listitem> - </itemizedlist> - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.putrecursive.return"> - &title.returns; - <para> - <parameter>mixed</parameter> - true on success, otherwise PEAR::Error. - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.putrecursive.throws"> - &title.throws; - <para> - Several errors may be returned by putRecursive. The errornumber is unspecific (until now) and will not - tell you anything about the errormessage. Possible errors are: - </para> - - - + <refnamediv> + <refname>Net_FTP::putRecursive()</refname> + <refpurpose>upload a whole directory to the FTP server.</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'Net/FTP.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>mixed <function>Net_FTP::putrecursive</function></funcdef> + <paramdef> + string <parameter>$local_path</parameter> + </paramdef> + <paramdef> + string <parameter>$remote_path</parameter> + </paramdef> + <paramdef> + bool <parameter><optional>$overwrite = false</optional></parameter> + </paramdef> + <paramdef> + int <parameter><optional>$mode = null</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.networking.net-ftp.putrecursive.desc"> + &title.desc; + <para> + This uploads a whole directory to the FTP server + from the computer your script runs on. + </para> + </refsect1> + <refsect1 id="package.networking.net-finger.putrecursive.parameter"> + &title.param; + <para> + <itemizedlist> + <listitem> <para> - <table> - <title>&title.throws.errortable;</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Error message</entry> - <entry>Description</entry> - <entry>Solution</entry> - </row> - </thead> - - <tbody> - <row> - <entry> - Given local-path '$local_path' seems not to be a directory. - </entry> - <entry> - The local path you have specified does not seem to be a directory. - </entry> - <entry> - Correct the local directory path. (Does it end with '/'?) - </entry> - </row> - - <row> - <entry> - Given remote-path '$remote_path' seems not to be a directory. - </entry> - <entry> - The remote path you have specified does not seem to be a directory. - </entry> - <entry> - Correct the local directory path. (Does it end with '/'?) - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.putrecursive.note"> - &title.note; - ¬e.notstatic; - </refsect1> - <refsect1 id="package.networking.net-ftp.putrecursive.example"> - &title.example; - <example> - <title>Using <function>putRecursive</function></title> - <programlisting role="php"> - <![CDATA[ + <parameter>string $local_path</parameter> + + - The source directory you'd like to upload. + + You can specify this with either an absolute path + or a path relative to the scripts directory. + + (Beware: The script directory is determined by the called script, + if you use includes!) + </para> + </listitem> + <listitem> + <para> + <parameter>string $remote_path</parameter> + - The path you'd like to upload to. + + This could either be an absolute or relative path to a directory. + </para> + </listitem> + <listitem> + <para> + <parameter><optional>bool $overwrite = false</optional></parameter> + - Whether to overwrite the remote directory if it exists, or not. + + If not set the directory will not be overwritten. + </para> + </listitem> + <listitem> + <para> + <parameter><optional>int $mode = null</optional></parameter> - + This has to be one of the constants <constant>FTP_ASCII</constant> or + <constant>FTP_BINARY</constant>. + + If not specified, the class will try to determine the mode + from the file extensions (from extensions.ini) + or fall back to the standard transfer mode (attribute). + </para> + </listitem> + </itemizedlist> + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.putrecursive.return"> + &title.returns; + <para> + <parameter>mixed</parameter> - true on success, otherwise PEAR::Error. + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.putrecursive.throws"> + &title.throws; + <para> + Several errors may be returned by putRecursive. + + The errornumber is unspecific (until now) and will not + tell you anything about the errormessage. + + Possible errors are: + </para> + <para> + <table> + <title>&title.throws.errortable;</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Error message</entry> + <entry>Description</entry> + <entry>Solution</entry> + </row> + </thead> + <tbody> + <row> + <entry> + Given local-path '$local_path' seems not to be a directory. + </entry> + <entry> + The local path you have specified does not seem to be a directory. + </entry> + <entry> + Correct the local directory path. (Does it end with '/'?) + </entry> + </row> + <row> + <entry> + Given remote-path '$remote_path' seems not to be a directory. + </entry> + <entry> + The remote path you have specified does not seem to be a directory. + </entry> + <entry> + Correct the local directory path. (Does it end with '/'?) + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.putrecursive.note"> + &title.note; + ¬e.notstatic; + </refsect1> + <refsect1 id="package.networking.net-ftp.putrecursive.example"> + &title.example; + <example> + <title>Using <function>putRecursive</function></title> + <programlisting role="php"> + <![CDATA[ <?php - - var_dump($test->putRecursive('/tmp/foo/', 'foo/', true)); - + + var_dump($test->putRecursive('/tmp/foo/', 'foo/', true)); + ?> -]]> - </programlisting> - </example> - </refsect1> - </refentry> +]]> + </programlisting> + </example> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -163,4 +174,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/peardoc/en/package/networking/net-ftp/put.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/en/package/networking/net-ftp/put.xml diff -u peardoc/en/package/networking/net-ftp/put.xml:1.3 peardoc/en/package/networking/net-ftp/put.xml:1.4 --- peardoc/en/package/networking/net-ftp/put.xml:1.3 Tue Aug 26 05:27:11 2003 +++ peardoc/en/package/networking/net-ftp/put.xml Tue Jan 16 07:39:15 2007 @@ -1,164 +1,185 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Id: put.xml,v 1.4 2007/01/16 07:39:15 moosh Exp $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.networking.net-ftp.put"> - <refnamediv> - <refname>Net_FTP::put()</refname> - <refpurpose>upload a file to the FTP server.</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'Net/FTP.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>mixed <function>Net_FTP::put</function></funcdef> - <paramdef> - string <parameter>$local_file</parameter> - </paramdef> - <paramdef> - string <parameter>$remote_file</parameter> - </paramdef> - <paramdef> - bool <parameter><optional>$overwrite = false</optional></parameter> - </paramdef> - <paramdef> - int <parameter><optional>$mode = null</optional></parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.networking.net-ftp.put.desc"> - &title.desc; - <para> - This uploads a file to the FTP server from the computer your script runs on. - </para> - </refsect1> - <refsect1 id="package.networking.net-finger.put.parameter"> - &title.param; - <para> - <itemizedlist> - <listitem> - <para> - <parameter>string $local_file</parameter> - - The source file you'd like to upload. You can specify this with either an absolute path - or a path relative to the scripts directory. (Beware: The script directory is - determined by the called script, if you use includes!) - </para> - </listitem> - <listitem> - <para> - <parameter>string $remote_file</parameter> - The path (including filename) you'd like to - upload to. This could either be an absolute or relative path to a file (not a directory! see: - <link linkend="package.networking.net-ftp.putrecursive">Net_FTP::putRecursive()</link>). - </para> - </listitem> - <listitem> - <para> - <parameter><optional>bool $overwrite = false</optional></parameter> - - Whether to overwrite the remote file, if it exists or not. if not set the file will not be - overwritten. - </para> - </listitem> - <listitem> - <para> - <parameter><optional>int $mode = null</optional></parameter> - - This has to be one of the constants <constant>FTP_ASCII</constant> or - <constant>FTP_BINARY</constant>. if not specified, the class will - try to determine the mode from the file extension (from extensions.ini) or - fall back to the standard transfer mode (attribute). - </para> - </listitem> - </itemizedlist> - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.put.return"> - &title.returns; - <para> - <parameter>mixed</parameter> - true on success, otherwise PEAR::Error. - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.put.throws"> - &title.throws; - <para> - Several errors may be returned by put. The errornumber is unspecific (until now) and will not - tell you anything about the errormessage. Possible errors are: - </para> - - - + <refnamediv> + <refname>Net_FTP::put()</refname> + <refpurpose>upload a file to the FTP server.</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'Net/FTP.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>mixed <function>Net_FTP::put</function></funcdef> + <paramdef> + string <parameter>$local_file</parameter> + </paramdef> + <paramdef> + string <parameter>$remote_file</parameter> + </paramdef> + <paramdef> + bool <parameter><optional>$overwrite = false</optional></parameter> + </paramdef> + <paramdef> + int <parameter><optional>$mode = null</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.networking.net-ftp.put.desc"> + &title.desc; + <para> + This uploads a file to the FTP server + from the computer your script runs on. + </para> + </refsect1> + <refsect1 id="package.networking.net-finger.put.parameter"> + &title.param; + <para> + <itemizedlist> + <listitem> <para> - <table> - <title>&title.throws.errortable;</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Error message</entry> - <entry>Description</entry> - <entry>Solution</entry> - </row> - </thead> - - <tbody> - <row> - <entry> - Local file '$local_file' does not exist. - </entry> - <entry> - The local file you specified does not exist. - </entry> - <entry> - Correct the local file path. - </entry> - </row> - <row> - <entry> - Remote file '$remote_file' exists and may not be overwriten. - </entry> - <entry> - The specified remote file exists but may not be overwritten. - </entry> - <entry> - Maybe you don't have the permission to overwrite the file. Check the filepermissions. - </entry> - </row> - - - <row> - <entry> - File '$local_file' could not be uploaded to '$remote_file'. - </entry> - <entry> - The upload of the local file failed. - </entry> - <entry> - This may have several reasons: Maybe the local file does not exist or the remote - directory you wanted to upload to does not exist or is not writeable. - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.put.note"> - &title.note; - ¬e.notstatic; - </refsect1> - <refsect1 id="package.networking.net-ftp.put.example"> - &title.example; - <example> - <title>Using <function>put</function></title> - <programlisting role="php"> - <![CDATA[ + <parameter>string $local_file</parameter> + - The source file you'd like to upload. + + You can specify this with either an absolute path + or a path relative to the scripts directory. + + (Beware: The script directory is determined by the called script, + if you use includes!) + </para> + </listitem> + <listitem> + <para> + <parameter>string $remote_file</parameter> + - The path (including filename) you'd like to upload to. + + This could either be an absolute or relative path to a file + + (not a directory! see: + <link linkend="package.networking.net-ftp.putrecursive">Net_FTP::putRecursive()</link>). + </para> + </listitem> + <listitem> + <para> + <parameter><optional>bool $overwrite = false</optional></parameter> + - Whether to overwrite the remote file, if it exists or not. + + If not set the file will not be overwritten. + </para> + </listitem> + <listitem> + <para> + <parameter> + <optional>int $mode = null</optional> + </parameter> + - This has to be one of the constants + <constant>FTP_ASCII</constant> or + <constant>FTP_BINARY</constant>. + + If not specified, + the class will try to determine the mode + from the file extension + (from extensions.ini) + or fall back to the standard transfer mode (attribute). + </para> + </listitem> + </itemizedlist> + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.put.return"> + &title.returns; + <para> + <parameter>mixed</parameter> - true on success, otherwise PEAR::Error. + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.put.throws"> + &title.throws; + <para> + Several errors may be returned by put. + + The errornumber is unspecific (until now) and will not + tell you anything about the errormessage. + + Possible errors are: + </para> + <para> + <table> + <title>&title.throws.errortable;</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Error message</entry> + <entry>Description</entry> + <entry>Solution</entry> + </row> + </thead> + + <tbody> + <row> + <entry> + Local file '$local_file' does not exist. + </entry> + <entry> + The local file you specified does not exist. + </entry> + <entry> + Correct the local file path. + </entry> + </row> + <row> + <entry> + Remote file '$remote_file' exists and may not be overwriten. + </entry> + <entry> + The specified remote file exists but may not be overwritten. + </entry> + <entry> + Maybe you don't have the permission to overwrite the file. + + Check the filepermissions. + </entry> + </row> + <row> + <entry> + File '$local_file' could not be uploaded to '$remote_file'. + </entry> + <entry> + The upload of the local file failed. + </entry> + <entry> + This may have several reasons: + Maybe the local file does not exist or the remote + directory you wanted to upload + to does not exist or is not writeable. + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.put.note"> + &title.note; + ¬e.notstatic; + </refsect1> + <refsect1 id="package.networking.net-ftp.put.example"> + &title.example; + <example> + <title>Using <function>put</function></title> + <programlisting role="php"> + <![CDATA[ <?php - - var_dump($test->put('/tmp/downloaded.zip', 'foo/bar.zip', true, FTP_BINARY)); - + + var_dump($test->put('/tmp/downloaded.zip', 'foo/bar.zip', true, FTP_BINARY)); + ?> -]]> - </programlisting> - </example> - </refsect1> - </refentry> +]]> + </programlisting> + </example> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -177,4 +198,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/peardoc/en/package/networking/net-ftp/net-ftp.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/en/package/networking/net-ftp/net-ftp.xml diff -u peardoc/en/package/networking/net-ftp/net-ftp.xml:1.3 peardoc/en/package/networking/net-ftp/net-ftp.xml:1.4 --- peardoc/en/package/networking/net-ftp/net-ftp.xml:1.3 Sat May 14 18:24:02 2005 +++ peardoc/en/package/networking/net-ftp/net-ftp.xml Tue Jan 16 07:39:15 2007 @@ -1,78 +1,79 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Id: net-ftp.xml,v 1.4 2007/01/16 07:39:15 moosh Exp $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.networking.net-ftp.net-ftp"> - <refnamediv> - <refname>Net_FTP::Net_FTP()</refname> - <refpurpose>constructor</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'Net/FTP.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>object <function>Net_FTP::Net_FTP</function></funcdef> - <paramdef> - string <parameter><optional>$host = null</optional></parameter> - </paramdef> - <paramdef> - int <parameter><optional>$port = null</optional></parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.networking.net-ftp.net-ftp.desc"> - &title.desc; - <para> - Create a new object for communication with FTP servers. - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.net-ftp.parameter"> - &title.param; - <para> - <itemizedlist> - <listitem> - <para> - <parameter><optional>string $host = null</optional></parameter> - The host to connect to ( - either an IP address or a domain name). - </para> - </listitem> - <listitem> - <para> - <parameter><optional>int $port = null</optional></parameter> - The port to connect to on the - server. - </para> - </listitem> - </itemizedlist> - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.net-ftp.return"> - &title.returns; - <para> - <parameter>object</parameter> - the new Net_FTP object. - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.net-ftp.note"> - &title.note; - ¬e.notstatic; - </refsect1> - <refsect1 id="package.networking.net-ftp.net-ftp.example"> - &title.example; - <example> - <title>Using <function>Net_FTP</function></title> - <programlisting role="php"> - <![CDATA[ -<?php - + <refnamediv> + <refname>Net_FTP::Net_FTP()</refname> + <refpurpose>constructor</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> require_once 'Net/FTP.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>object <function>Net_FTP::Net_FTP</function></funcdef> + <paramdef> + string <parameter><optional>$host = null</optional></parameter> + </paramdef> + <paramdef> + int <parameter><optional>$port = null</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.networking.net-ftp.net-ftp.desc"> + &title.desc; + <para> + Create a new object for communication with FTP servers. + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.net-ftp.parameter"> + &title.param; + <para> + <itemizedlist> + <listitem> + <para> + <parameter><optional>string $host = null</optional></parameter> - The host to connect to ( + either an IP address or a domain name). + </para> + </listitem> + <listitem> + <para> + <parameter><optional>int $port = null</optional></parameter> - The port to connect to on the + server. + </para> + </listitem> + </itemizedlist> + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.net-ftp.return"> + &title.returns; + <para> + <parameter>object</parameter> - the new Net_FTP object. + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.net-ftp.note"> + &title.note; + ¬e.notstatic; + </refsect1> + <refsect1 id="package.networking.net-ftp.net-ftp.example"> + &title.example; + <example> + <title>Using <function>Net_FTP</function></title> + <programlisting role="php"> + <![CDATA[ +<?php + + require_once 'Net/FTP.php'; - $test = new Net_FTP('ftp.mydomain.com', 21); + $test = new Net_FTP('ftp.mydomain.com', 21); ?> -]]> - </programlisting> - </example> - </refsect1> - </refentry> +]]> + </programlisting> + </example> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -91,4 +92,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/peardoc/en/package/networking/net-ftp/mdtm.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/en/package/networking/net-ftp/mdtm.xml diff -u peardoc/en/package/networking/net-ftp/mdtm.xml:1.3 peardoc/en/package/networking/net-ftp/mdtm.xml:1.4 --- peardoc/en/package/networking/net-ftp/mdtm.xml:1.3 Tue Aug 26 09:27:50 2003 +++ peardoc/en/package/networking/net-ftp/mdtm.xml Tue Jan 16 07:39:15 2007 @@ -1,148 +1,159 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Id: mdtm.xml,v 1.4 2007/01/16 07:39:15 moosh Exp $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.networking.net-ftp.mdtm"> - <refnamediv> - <refname>Net_FTP::mdtm()</refname> - <refpurpose>returns the last modification date of a file.</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'Net/FTP.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>mixed <function>Net_FTP::mdtm</function></funcdef> - <paramdef> - string <parameter>$file</parameter> - </paramdef> - <paramdef> - string <parameter><optional>$format = null</optional></parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.networking.net-ftp.mdtm.desc"> - &title.desc; - <para> - gives you the last modification-date of a file either as a unix timestamp or in a formated - date. - </para> - </refsect1> - <refsect1 id="package.networking.net-finger.mdtm.parameter"> - &title.param; - <para> - <itemizedlist> - <listitem> - <para> - <parameter>string $file</parameter> - The file to check. - </para> - <para> - <parameter><optional>string $format</optional></parameter> - A date()-function styled format-string. - </para> - </listitem> - </itemizedlist> - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.mdtm.return"> - &title.returns; - <para> - <parameter>mixed</parameter> - the last modification date on success, otherwise PEAR::Error. - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.mdtm.throws"> - &title.throws; - <para> - Several errors may be returned by mdtm. The errornumber is unspecific (until now) and will not - tell you anything about the errormessage. Possible errors are: - </para> - - - + <refnamediv> + <refname>Net_FTP::mdtm()</refname> + <refpurpose>returns the last modification date of a file.</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'Net/FTP.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>mixed <function>Net_FTP::mdtm</function></funcdef> + <paramdef> + string <parameter>$file</parameter> + </paramdef> + <paramdef> + string <parameter><optional>$format = null</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.networking.net-ftp.mdtm.desc"> + &title.desc; + <para> + gives you the last modification-date + of a file either as a unix timestamp + or in a formated date. + </para> + </refsect1> + <refsect1 id="package.networking.net-finger.mdtm.parameter"> + &title.param; + <para> + <itemizedlist> + <listitem> <para> - <table> - <title>&title.throws.errortable;</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Error message</entry> - <entry>Description</entry> - <entry>Solution</entry> - </row> - </thead> - - <tbody> - <row> - <entry> - Filename '$file' seems to be a directory. - </entry> - <entry> - The filename you gave the method does not reference a regular-file but a - directory. - </entry> - <entry> - Specify a correct filenamepath (eg. <constant>/my/file/path/foo.html</constant>, <constant>../foo.html</constant>). - </entry> - </row> - <row> - <entry> - Could not get last-modification-date of '$file'. - </entry> - <entry> - The last-modification date could not be determined by PHP. Reasons for this may be - that your FTP-server does not support the used command or that you gave the function a - non existent file as reference. - </entry> - <entry> - <itemizedlist> - <listitem> - <simpara>check the given file for existence</simpara> - </listitem> - <listitem> - <simpara>contact the FTP server's admin</simpara> - </listitem> - </itemizedlist> - </entry> - </row> - - - <row> - <entry> - Date-format failed on timestamp '$res'. - </entry> - <entry> - The given format-string was not well formated. - </entry> - <entry> - Check the documentation of the PHP function date(). - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.mdtm.note"> - &title.note; - ¬e.notstatic; - </refsect1> - <refsect1 id="package.networking.net-ftp.mdtm.example"> - &title.example; - <example> - <title>Using <function>mdtm</function></title> - <programlisting role="php"> - <![CDATA[ + <parameter>string $file</parameter> - The file to check. + </para> + <para> + <parameter><optional>string $format</optional></parameter> + - A date()-function styled format-string. + </para> + </listitem> + </itemizedlist> + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.mdtm.return"> + &title.returns; + <para> + <parameter>mixed</parameter> + - the last modification date on success, otherwise PEAR::Error. + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.mdtm.throws"> + &title.throws; + <para> + Several errors may be returned by mdtm. + + The errornumber is unspecific (until now) and will not + tell you anything about the errormessage. + + Possible errors are: + </para> + + + + <para> + <table> + <title>&title.throws.errortable;</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Error message</entry> + <entry>Description</entry> + <entry>Solution</entry> + </row> + </thead> + + <tbody> + <row> + <entry> + Filename '$file' seems to be a directory. + </entry> + <entry> + The filename you gave the method does not reference + a regular-file but a directory. + </entry> + <entry> + Specify a correct filenamepath + (eg. <constant>/my/file/path/foo.html</constant>, + <constant>../foo.html</constant>). + </entry> + </row> + <row> + <entry> + Could not get last-modification-date of '$file'. + </entry> + <entry> + The last-modification date could not be determined by PHP. + + Reasons for this may be that your FTP-server + does not support the used command + or that you gave the function a + non existent file as reference. + </entry> + <entry> + <itemizedlist> + <listitem> + <simpara>check the given file for existence</simpara> + </listitem> + <listitem> + <simpara>contact the FTP server's admin</simpara> + </listitem> + </itemizedlist> + </entry> + </row> + <row> + <entry> + Date-format failed on timestamp '$res'. + </entry> + <entry> + The given format-string was not well formated. + </entry> + <entry> + Check the documentation of the PHP function date(). + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.mdtm.note"> + &title.note; + ¬e.notstatic; + </refsect1> + <refsect1 id="package.networking.net-ftp.mdtm.example"> + &title.example; + <example> + <title>Using <function>mdtm</function></title> + <programlisting role="php"> + <![CDATA[ <?php - - var_dump($test->mdtm('/foo/bar')); - // returns the last modification time in german timeformat - var_dump($test->mdtm('/foo/bar', 'd.m.Y, H:i')); - + var_dump($test->mdtm('/foo/bar')); + + // returns the last modification time in german timeformat + var_dump($test->mdtm('/foo/bar', 'd.m.Y, H:i')); + ?> -]]> - </programlisting> - </example> - </refsect1> - </refentry> +]]> + </programlisting> + </example> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -161,4 +172,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/peardoc/en/package/networking/net-ftp/pwd.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/en/package/networking/net-ftp/pwd.xml diff -u peardoc/en/package/networking/net-ftp/pwd.xml:1.2 peardoc/en/package/networking/net-ftp/pwd.xml:1.3 --- peardoc/en/package/networking/net-ftp/pwd.xml:1.2 Sun Aug 24 15:29:00 2003 +++ peardoc/en/package/networking/net-ftp/pwd.xml Tue Jan 16 07:39:15 2007 @@ -1,61 +1,62 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Id: pwd.xml,v 1.3 2007/01/16 07:39:15 moosh Exp $ --> +<!-- $Revision: 1.3 $ --> <refentry id="package.networking.net-ftp.pwd"> - <refnamediv> - <refname>Net_FTP::pwd()</refname> - <refpurpose>returns the directory on the server you are currently in.</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'Net/FTP.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>mixed <function>Net_FTP::pwd</function></funcdef> - <paramdef></paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.networking.net-ftp.pwd.desc"> - &title.desc; - <para> - Returns the directory currently selected on the server. - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.pwd.return"> - &title.returns; - <para> - <parameter>mixed</parameter> - path (absolute) as string on success, otherwise PEAR::Error. - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.pwd.throws"> - &title.throws; - <para> - The returned &class.pear-error; object in case of an error - is unspecific. You can ignore the errornumber and errormessage, - because only "Could not determine the actual path" will be returned if the - operation fails. - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.pwd.note"> - &title.note; - ¬e.notstatic; - </refsect1> - <refsect1 id="package.networking.net-ftp.pwd.example"> - &title.example; - <example> - <title>Using <function>pwd</function></title> - <programlisting role="php"> - <![CDATA[ + <refnamediv> + <refname>Net_FTP::pwd()</refname> + <refpurpose>returns the directory on the server you are currently in.</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'Net/FTP.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>mixed <function>Net_FTP::pwd</function></funcdef> + <paramdef></paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.networking.net-ftp.pwd.desc"> + &title.desc; + <para> + Returns the directory currently selected on the server. + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.pwd.return"> + &title.returns; + <para> + <parameter>mixed</parameter> - path (absolute) as string on success, otherwise PEAR::Error. + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.pwd.throws"> + &title.throws; + <para> + The returned &class.pear-error; object in case of an error + is unspecific. You can ignore the errornumber and errormessage, + because only "Could not determine the actual path" will be returned if the + operation fails. + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.pwd.note"> + &title.note; + ¬e.notstatic; + </refsect1> + <refsect1 id="package.networking.net-ftp.pwd.example"> + &title.example; + <example> + <title>Using <function>pwd</function></title> + <programlisting role="php"> + <![CDATA[ <?php - - echo $test->pwd(); + + echo $test->pwd(); ?> -]]> - </programlisting> - </example> - </refsect1> - </refentry> +]]> + </programlisting> + </example> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml
http://cvs.php.net/viewvc.cgi/peardoc/en/package/networking/net-ftp/ls.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/en/package/networking/net-ftp/ls.xml diff -u peardoc/en/package/networking/net-ftp/ls.xml:1.2 peardoc/en/package/networking/net-ftp/ls.xml:1.3 --- peardoc/en/package/networking/net-ftp/ls.xml:1.2 Sun Aug 24 15:29:00 2003 +++ peardoc/en/package/networking/net-ftp/ls.xml Tue Jan 16 07:39:15 2007 @@ -1,155 +1,164 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Id: ls.xml,v 1.3 2007/01/16 07:39:15 moosh Exp $ --> +<!-- $Revision: 1.3 $ --> <refentry id="package.networking.net-ftp.ls"> - <refnamediv> - <refname>Net_FTP::ls()</refname> - <refpurpose>returns the listing of a directory in a specified way.</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'Net/FTP.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>mixed <function>Net_FTP::ls</function></funcdef> - <paramdef> - string <parameter><optional>$dir = null</optional></parameter> - </paramdef> - <paramdef> - string <parameter><optional>$mode = <constant>NET_FTP_DIRS_FILES</constant></optional></parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.networking.net-ftp.ls.desc"> - &title.desc; - <para> - this function gives you a listing of either the files / directories / both or an unformated - array (like the PHP function ftp_rawlist()). - </para> - </refsect1> - <refsect1 id="package.networking.net-finger.ls.parameter"> - &title.param; - <para> - <itemizedlist> - <listitem> - <para> - <parameter>string <optional>$dir = null</optional></parameter> - The directory to list. You can - either use a relative or an absolute path. This optional parameter will be set to the - current path. - </para> - </listitem> - <listitem> - <para> - <parameter><optional>int $mode = <constant>NET_FTP_DIRS_FILES</constant></optional></parameter> - - A constant representing the nodes list (directories, files, both or a ram directory - listing). This parameter is determined by the constants ( - see: <link linkend="package.networking.net-ftp.constants">Constants</link>). This parameter is - optional and will be set for listing directories and files structured in an array. - </para> - </listitem> - </itemizedlist> - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.ls.return"> - &title.returns; - <para> - <parameter>mixed</parameter> - a directory listing in the form you determine on success, - otherwise PEAR::Error. - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.ls.throws"> - &title.throws; - <para> - Several errors may be returned by ls. The errornumber is unspecific (until now) and will not - tell you anything about the errormessage. Possible errors are: - </para> - - - + <refnamediv> + <refname>Net_FTP::ls()</refname> + <refpurpose>returns the listing of a directory in a specified way.</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'Net/FTP.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>mixed <function>Net_FTP::ls</function></funcdef> + <paramdef> + string <parameter><optional>$dir = null</optional></parameter> + </paramdef> + <paramdef> + string <parameter><optional>$mode = <constant>NET_FTP_DIRS_FILES</constant></optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.networking.net-ftp.ls.desc"> + &title.desc; + <para> + this function gives you a listing of either the files / directories / both + or an unformated array (like the PHP function ftp_rawlist()). + </para> + </refsect1> + <refsect1 id="package.networking.net-finger.ls.parameter"> + &title.param; + <para> + <itemizedlist> + <listitem> <para> - <table> - <title>&title.throws.errortable;</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Error message</entry> - <entry>Description</entry> - <entry>Solution</entry> - </row> - </thead> - - <tbody> - <row> - <entry> - Raw directory-list in wrong format. - </entry> - <entry> - The format given by the server on PHP function ftp_rawlist()was wrong. Check if the - directory you wanted to be listed is correct and you have access to listing it. - </entry> - <entry> - Specify a correct directory path (eg. <constant>/my/file/path/</constant>, <constant>../</constant>) - and check (maybe change) the rights on it. - </entry> - </row> - <row> - <entry> - Could not get last-modification-date of '$file'. - </entry> - <entry> - The last-modification date could not be determined by PHP. Reasons for this might be - that your FTP-server does not support the used command or that you gave the function a - non existent file as reference. - </entry> - <entry> - <itemizedlist> - <listitem> - <simpara>check the given file for existence</simpara> - </listitem> - <listitem> - <simpara>contact the FTP server's admin</simpara> - </listitem> - </itemizedlist> - </entry> - </row> - - - <row> - <entry> - Date-format failed on timestamp '$res'. - </entry> - <entry> - The given format-string was not well formated. - </entry> - <entry> - Check the documentation of the PHP function date(). - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.ls.note"> - &title.note; - ¬e.notstatic; - </refsect1> - <refsect1 id="package.networking.net-ftp.ls.example"> - &title.example; - <example> - <title>Using <function>ls</function></title> - <programlisting role="php"> - <![CDATA[ + <parameter>string <optional>$dir = null</optional></parameter> - The directory to list. You can + either use a relative or an absolute path. This optional parameter will be set to the + current path. + </para> + </listitem> + <listitem> + <para> + <parameter> + <optional>int $mode = <constant>NET_FTP_DIRS_FILES</constant></optional> + </parameter> + - A constant representing the nodes list + (directories, files, both or a ram directory listing). + + This parameter is determined by the constants + (see: <link linkend="package.networking.net-ftp.constants">Constants</link>). + + This parameter is optional and will be set for + listing directories and files structured in an array. + </para> + </listitem> + </itemizedlist> + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.ls.return"> + &title.returns; + <para> + <parameter>mixed</parameter> + - a directory listing in the form you determine on success, + otherwise PEAR::Error. + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.ls.throws"> + &title.throws; + <para> + Several errors may be returned by ls. + + The errornumber is unspecific (until now) and will not + tell you anything about the errormessage. + + Possible errors are: + </para> + <para> + <table> + <title>&title.throws.errortable;</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Error message</entry> + <entry>Description</entry> + <entry>Solution</entry> + </row> + </thead> + + <tbody> + <row> + <entry> + Raw directory-list in wrong format. + </entry> + <entry> + The format given by the server on PHP function ftp_rawlist()was wrong. Check if the + directory you wanted to be listed is correct and you have access to listing it. + </entry> + <entry> + Specify a correct directory path (eg. <constant>/my/file/path/</constant>, <constant>../</constant>) + and check (maybe change) the rights on it. + </entry> + </row> + <row> + <entry> + Could not get last-modification-date of '$file'. + </entry> + <entry> + The last-modification date could not be determined by PHP. Reasons for this might be + that your FTP-server does not support the used command or that you gave the function a + non existent file as reference. + </entry> + <entry> + <itemizedlist> + <listitem> + <simpara>check the given file for existence</simpara> + </listitem> + <listitem> + <simpara>contact the FTP server's admin</simpara> + </listitem> + </itemizedlist> + </entry> + </row> + + + <row> + <entry> + Date-format failed on timestamp '$res'. + </entry> + <entry> + The given format-string was not well formated. + </entry> + <entry> + Check the documentation of the PHP function date(). + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.ls.note"> + &title.note; + ¬e.notstatic; + </refsect1> + <refsect1 id="package.networking.net-ftp.ls.example"> + &title.example; + <example> + <title>Using <function>ls</function></title> + <programlisting role="php"> + <![CDATA[ <?php - - var_dump($test->ls('/foo/bar')); - + + var_dump($test->ls('/foo/bar')); + ?> -]]> - </programlisting> - </example> - </refsect1> - </refentry> +]]> + </programlisting> + </example> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/peardoc/en/package/networking/net-ftp/mkdir.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/en/package/networking/net-ftp/mkdir.xml diff -u peardoc/en/package/networking/net-ftp/mkdir.xml:1.2 peardoc/en/package/networking/net-ftp/mkdir.xml:1.3 --- peardoc/en/package/networking/net-ftp/mkdir.xml:1.2 Sun Aug 24 15:29:00 2003 +++ peardoc/en/package/networking/net-ftp/mkdir.xml Tue Jan 16 07:39:15 2007 @@ -1,82 +1,100 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Id: mkdir.xml,v 1.3 2007/01/16 07:39:15 moosh Exp $ --> +<!-- $Revision: 1.3 $ --> <refentry id="package.networking.net-ftp.mkdir"> - <refnamediv> - <refname>Net_FTP::mkdir()</refname> - <refpurpose>creates a new directory.</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'Net/FTP.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>mixed <function>Net_FTP::mkdir</function></funcdef> - <paramdef> - string <parameter>$directory</parameter> - </paramdef> - <paramdef> - bool <parameter><optional>$recursive = false</optional></parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.networking.net-ftp.mkdir.desc"> - &title.desc; - <para> - Creates a new directory on the FTP server. You can give this function either - a relative or an absolute path as the first parameter. The second (optional) - parameter lets you create directories recursively (meaning you can create - './my/new/dir' even if '/my' doesn't exist. All 3 directories would be created). - </para> - </refsect1> - <refsect1 id="package.networking.net-finger.mkdir.parameter"> - &title.param; - <para> - <itemizedlist> - <listitem> - <para> - <parameter>string $directory</parameter> - The directory you want to create. This can - either be an absolute path (e.g. '/home/mydir') or a relative one (e.g. 'mydir'). - </para> - </listitem> - </itemizedlist> - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.mkdir.return"> - &title.returns; - <para> - <parameter>mixed</parameter> - true on success, otherwise PEAR::Error. - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.mkdir.throws"> - &title.throws; - <para> - The returned &class.pear-error; object in case of an error - is specific. There is only one errornumber which may occur. The message given by this error - will contain the directory where the error occurred in "Creation of '$dir' failed". - operation fails. - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.mkdir.note"> - &title.note; - ¬e.notstatic; - </refsect1> - <refsect1 id="package.networking.net-ftp.mkdir.example"> - &title.example; - <example> - <title>Using <function>mkdir</function></title> - <programlisting role="php"> - <![CDATA[ + <refnamediv> + <refname>Net_FTP::mkdir()</refname> + <refpurpose>creates a new directory.</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'Net/FTP.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>mixed <function>Net_FTP::mkdir</function></funcdef> + <paramdef> + string <parameter>$directory</parameter> + </paramdef> + <paramdef> + bool <parameter><optional>$recursive = false</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.networking.net-ftp.mkdir.desc"> + &title.desc; + <para> + Creates a new directory on the FTP server. + + You can give this function either a relative + or an absolute path as the first parameter. + + The second (optional) parameter lets you create directories recursively + + (meaning you can create './my/new/dir' even if '/my' doesn't exist. + + All 3 directories would be created + ). + </para> + </refsect1> + <refsect1 id="package.networking.net-finger.mkdir.parameter"> + &title.param; + <para> + <itemizedlist> + <listitem> + <para> + <parameter>string $directory</parameter> + - The directory you want to create. + + This can either be an absolute path + (e.g. '/home/mydir') + or a relative one + (e.g. 'mydir'). + </para> + </listitem> + </itemizedlist> + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.mkdir.return"> + &title.returns; + <para> + <parameter>mixed</parameter> + - true on success, otherwise PEAR::Error. + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.mkdir.throws"> + &title.throws; + <para> + The returned &class.pear-error; object in case of an error is specific. + + There is only one errornumber which may occur. + + The message given by this error will contain the directory + where the error occurred in "Creation of '$dir' failed". + + operation fails. + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.mkdir.note"> + &title.note; + ¬e.notstatic; + </refsect1> + <refsect1 id="package.networking.net-ftp.mkdir.example"> + &title.example; + <example> + <title>Using <function>mkdir</function></title> + <programlisting role="php"> + <![CDATA[ <?php - - $test->mkdir('../mydir'); + + $test->mkdir('../mydir'); ?> -]]> - </programlisting> - </example> - </refsect1> - </refentry> +]]> + </programlisting> + </example> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -95,4 +113,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/peardoc/en/package/networking/net-ftp/putrecursive.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/en/package/networking/net-ftp/putrecursive.xml diff -u peardoc/en/package/networking/net-ftp/putrecursive.xml:1.2 peardoc/en/package/networking/net-ftp/putrecursive.xml:1.3 --- peardoc/en/package/networking/net-ftp/putrecursive.xml:1.2 Sun Aug 24 15:29:00 2003 +++ peardoc/en/package/networking/net-ftp/putrecursive.xml Tue Jan 16 07:39:15 2007 @@ -1,150 +1,161 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Id: putrecursive.xml,v 1.3 2007/01/16 07:39:15 moosh Exp $ --> +<!-- $Revision: 1.3 $ --> <refentry id="package.networking.net-ftp.putrecursive"> - <refnamediv> - <refname>Net_FTP::putRecursive()</refname> - <refpurpose>upload a whole directory to the FTP server.</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'Net/FTP.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>mixed <function>Net_FTP::putrecursive</function></funcdef> - <paramdef> - string <parameter>$local_path</parameter> - </paramdef> - <paramdef> - string <parameter>$remote_path</parameter> - </paramdef> - <paramdef> - bool <parameter><optional>$overwrite = false</optional></parameter> - </paramdef> - <paramdef> - int <parameter><optional>$mode = null</optional></parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.networking.net-ftp.putrecursive.desc"> - &title.desc; - <para> - This uploads a whole directory to the FTP server from the computer your script runs on. - </para> - </refsect1> - <refsect1 id="package.networking.net-finger.putrecursive.parameter"> - &title.param; - <para> - <itemizedlist> - <listitem> - <para> - <parameter>string $local_path</parameter> - - The source directory you'd like to upload. You can specify this with either an absolute path - or a path relative to the scripts directory. (Beware: The script directory is - determined by the called script, if you use includes!) - </para> - </listitem> - <listitem> - <para> - <parameter>string $remote_path</parameter> - The path you'd like to - upload to. This could either be an absolute or relative path to a directory. - </para> - </listitem> - <listitem> - <para> - <parameter><optional>bool $overwrite = false</optional></parameter> - - Whether to overwrite the remote directory if it exists, or not. if not set the directory - will not be overwritten. - </para> - </listitem> - <listitem> - <para> - <parameter><optional>int $mode = null</optional></parameter> - - This has to be one of the constants <constant>FTP_ASCII</constant> or - <constant>FTP_BINARY</constant>. if not specified, the class will - try to determine the mode from the file extensions (from extensions.ini) or - fall back to the standard transfer mode (attribute). - </para> - </listitem> - </itemizedlist> - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.putrecursive.return"> - &title.returns; - <para> - <parameter>mixed</parameter> - true on success, otherwise PEAR::Error. - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.putrecursive.throws"> - &title.throws; - <para> - Several errors may be returned by putRecursive. The errornumber is unspecific (until now) and will not - tell you anything about the errormessage. Possible errors are: - </para> - - - + <refnamediv> + <refname>Net_FTP::putRecursive()</refname> + <refpurpose>upload a whole directory to the FTP server.</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'Net/FTP.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>mixed <function>Net_FTP::putrecursive</function></funcdef> + <paramdef> + string <parameter>$local_path</parameter> + </paramdef> + <paramdef> + string <parameter>$remote_path</parameter> + </paramdef> + <paramdef> + bool <parameter><optional>$overwrite = false</optional></parameter> + </paramdef> + <paramdef> + int <parameter><optional>$mode = null</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.networking.net-ftp.putrecursive.desc"> + &title.desc; + <para> + This uploads a whole directory to the FTP server + from the computer your script runs on. + </para> + </refsect1> + <refsect1 id="package.networking.net-finger.putrecursive.parameter"> + &title.param; + <para> + <itemizedlist> + <listitem> <para> - <table> - <title>&title.throws.errortable;</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Error message</entry> - <entry>Description</entry> - <entry>Solution</entry> - </row> - </thead> - - <tbody> - <row> - <entry> - Given local-path '$local_path' seems not to be a directory. - </entry> - <entry> - The local path you have specified does not seem to be a directory. - </entry> - <entry> - Correct the local directory path. (Does it end with '/'?) - </entry> - </row> - - <row> - <entry> - Given remote-path '$remote_path' seems not to be a directory. - </entry> - <entry> - The remote path you have specified does not seem to be a directory. - </entry> - <entry> - Correct the local directory path. (Does it end with '/'?) - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.putrecursive.note"> - &title.note; - ¬e.notstatic; - </refsect1> - <refsect1 id="package.networking.net-ftp.putrecursive.example"> - &title.example; - <example> - <title>Using <function>putRecursive</function></title> - <programlisting role="php"> - <![CDATA[ + <parameter>string $local_path</parameter> + + - The source directory you'd like to upload. + + You can specify this with either an absolute path + or a path relative to the scripts directory. + + (Beware: The script directory is determined by the called script, + if you use includes!) + </para> + </listitem> + <listitem> + <para> + <parameter>string $remote_path</parameter> + - The path you'd like to upload to. + + This could either be an absolute or relative path to a directory. + </para> + </listitem> + <listitem> + <para> + <parameter><optional>bool $overwrite = false</optional></parameter> + - Whether to overwrite the remote directory if it exists, or not. + + If not set the directory will not be overwritten. + </para> + </listitem> + <listitem> + <para> + <parameter><optional>int $mode = null</optional></parameter> - + This has to be one of the constants <constant>FTP_ASCII</constant> or + <constant>FTP_BINARY</constant>. + + If not specified, the class will try to determine the mode + from the file extensions (from extensions.ini) + or fall back to the standard transfer mode (attribute). + </para> + </listitem> + </itemizedlist> + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.putrecursive.return"> + &title.returns; + <para> + <parameter>mixed</parameter> - true on success, otherwise PEAR::Error. + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.putrecursive.throws"> + &title.throws; + <para> + Several errors may be returned by putRecursive. + + The errornumber is unspecific (until now) and will not + tell you anything about the errormessage. + + Possible errors are: + </para> + <para> + <table> + <title>&title.throws.errortable;</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Error message</entry> + <entry>Description</entry> + <entry>Solution</entry> + </row> + </thead> + <tbody> + <row> + <entry> + Given local-path '$local_path' seems not to be a directory. + </entry> + <entry> + The local path you have specified does not seem to be a directory. + </entry> + <entry> + Correct the local directory path. (Does it end with '/'?) + </entry> + </row> + <row> + <entry> + Given remote-path '$remote_path' seems not to be a directory. + </entry> + <entry> + The remote path you have specified does not seem to be a directory. + </entry> + <entry> + Correct the local directory path. (Does it end with '/'?) + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.putrecursive.note"> + &title.note; + ¬e.notstatic; + </refsect1> + <refsect1 id="package.networking.net-ftp.putrecursive.example"> + &title.example; + <example> + <title>Using <function>putRecursive</function></title> + <programlisting role="php"> + <![CDATA[ <?php - - var_dump($test->putRecursive('/tmp/foo/', 'foo/', true)); - + + var_dump($test->putRecursive('/tmp/foo/', 'foo/', true)); + ?> -]]> - </programlisting> - </example> - </refsect1> - </refentry> +]]> + </programlisting> + </example> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -163,4 +174,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/peardoc/en/package/networking/net-ftp/put.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/en/package/networking/net-ftp/put.xml diff -u peardoc/en/package/networking/net-ftp/put.xml:1.3 peardoc/en/package/networking/net-ftp/put.xml:1.4 --- peardoc/en/package/networking/net-ftp/put.xml:1.3 Tue Aug 26 05:27:11 2003 +++ peardoc/en/package/networking/net-ftp/put.xml Tue Jan 16 07:39:15 2007 @@ -1,164 +1,185 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Id: put.xml,v 1.4 2007/01/16 07:39:15 moosh Exp $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.networking.net-ftp.put"> - <refnamediv> - <refname>Net_FTP::put()</refname> - <refpurpose>upload a file to the FTP server.</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'Net/FTP.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>mixed <function>Net_FTP::put</function></funcdef> - <paramdef> - string <parameter>$local_file</parameter> - </paramdef> - <paramdef> - string <parameter>$remote_file</parameter> - </paramdef> - <paramdef> - bool <parameter><optional>$overwrite = false</optional></parameter> - </paramdef> - <paramdef> - int <parameter><optional>$mode = null</optional></parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.networking.net-ftp.put.desc"> - &title.desc; - <para> - This uploads a file to the FTP server from the computer your script runs on. - </para> - </refsect1> - <refsect1 id="package.networking.net-finger.put.parameter"> - &title.param; - <para> - <itemizedlist> - <listitem> - <para> - <parameter>string $local_file</parameter> - - The source file you'd like to upload. You can specify this with either an absolute path - or a path relative to the scripts directory. (Beware: The script directory is - determined by the called script, if you use includes!) - </para> - </listitem> - <listitem> - <para> - <parameter>string $remote_file</parameter> - The path (including filename) you'd like to - upload to. This could either be an absolute or relative path to a file (not a directory! see: - <link linkend="package.networking.net-ftp.putrecursive">Net_FTP::putRecursive()</link>). - </para> - </listitem> - <listitem> - <para> - <parameter><optional>bool $overwrite = false</optional></parameter> - - Whether to overwrite the remote file, if it exists or not. if not set the file will not be - overwritten. - </para> - </listitem> - <listitem> - <para> - <parameter><optional>int $mode = null</optional></parameter> - - This has to be one of the constants <constant>FTP_ASCII</constant> or - <constant>FTP_BINARY</constant>. if not specified, the class will - try to determine the mode from the file extension (from extensions.ini) or - fall back to the standard transfer mode (attribute). - </para> - </listitem> - </itemizedlist> - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.put.return"> - &title.returns; - <para> - <parameter>mixed</parameter> - true on success, otherwise PEAR::Error. - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.put.throws"> - &title.throws; - <para> - Several errors may be returned by put. The errornumber is unspecific (until now) and will not - tell you anything about the errormessage. Possible errors are: - </para> - - - + <refnamediv> + <refname>Net_FTP::put()</refname> + <refpurpose>upload a file to the FTP server.</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'Net/FTP.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>mixed <function>Net_FTP::put</function></funcdef> + <paramdef> + string <parameter>$local_file</parameter> + </paramdef> + <paramdef> + string <parameter>$remote_file</parameter> + </paramdef> + <paramdef> + bool <parameter><optional>$overwrite = false</optional></parameter> + </paramdef> + <paramdef> + int <parameter><optional>$mode = null</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.networking.net-ftp.put.desc"> + &title.desc; + <para> + This uploads a file to the FTP server + from the computer your script runs on. + </para> + </refsect1> + <refsect1 id="package.networking.net-finger.put.parameter"> + &title.param; + <para> + <itemizedlist> + <listitem> <para> - <table> - <title>&title.throws.errortable;</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Error message</entry> - <entry>Description</entry> - <entry>Solution</entry> - </row> - </thead> - - <tbody> - <row> - <entry> - Local file '$local_file' does not exist. - </entry> - <entry> - The local file you specified does not exist. - </entry> - <entry> - Correct the local file path. - </entry> - </row> - <row> - <entry> - Remote file '$remote_file' exists and may not be overwriten. - </entry> - <entry> - The specified remote file exists but may not be overwritten. - </entry> - <entry> - Maybe you don't have the permission to overwrite the file. Check the filepermissions. - </entry> - </row> - - - <row> - <entry> - File '$local_file' could not be uploaded to '$remote_file'. - </entry> - <entry> - The upload of the local file failed. - </entry> - <entry> - This may have several reasons: Maybe the local file does not exist or the remote - directory you wanted to upload to does not exist or is not writeable. - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.put.note"> - &title.note; - ¬e.notstatic; - </refsect1> - <refsect1 id="package.networking.net-ftp.put.example"> - &title.example; - <example> - <title>Using <function>put</function></title> - <programlisting role="php"> - <![CDATA[ + <parameter>string $local_file</parameter> + - The source file you'd like to upload. + + You can specify this with either an absolute path + or a path relative to the scripts directory. + + (Beware: The script directory is determined by the called script, + if you use includes!) + </para> + </listitem> + <listitem> + <para> + <parameter>string $remote_file</parameter> + - The path (including filename) you'd like to upload to. + + This could either be an absolute or relative path to a file + + (not a directory! see: + <link linkend="package.networking.net-ftp.putrecursive">Net_FTP::putRecursive()</link>). + </para> + </listitem> + <listitem> + <para> + <parameter><optional>bool $overwrite = false</optional></parameter> + - Whether to overwrite the remote file, if it exists or not. + + If not set the file will not be overwritten. + </para> + </listitem> + <listitem> + <para> + <parameter> + <optional>int $mode = null</optional> + </parameter> + - This has to be one of the constants + <constant>FTP_ASCII</constant> or + <constant>FTP_BINARY</constant>. + + If not specified, + the class will try to determine the mode + from the file extension + (from extensions.ini) + or fall back to the standard transfer mode (attribute). + </para> + </listitem> + </itemizedlist> + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.put.return"> + &title.returns; + <para> + <parameter>mixed</parameter> - true on success, otherwise PEAR::Error. + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.put.throws"> + &title.throws; + <para> + Several errors may be returned by put. + + The errornumber is unspecific (until now) and will not + tell you anything about the errormessage. + + Possible errors are: + </para> + <para> + <table> + <title>&title.throws.errortable;</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Error message</entry> + <entry>Description</entry> + <entry>Solution</entry> + </row> + </thead> + + <tbody> + <row> + <entry> + Local file '$local_file' does not exist. + </entry> + <entry> + The local file you specified does not exist. + </entry> + <entry> + Correct the local file path. + </entry> + </row> + <row> + <entry> + Remote file '$remote_file' exists and may not be overwriten. + </entry> + <entry> + The specified remote file exists but may not be overwritten. + </entry> + <entry> + Maybe you don't have the permission to overwrite the file. + + Check the filepermissions. + </entry> + </row> + <row> + <entry> + File '$local_file' could not be uploaded to '$remote_file'. + </entry> + <entry> + The upload of the local file failed. + </entry> + <entry> + This may have several reasons: + Maybe the local file does not exist or the remote + directory you wanted to upload + to does not exist or is not writeable. + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.put.note"> + &title.note; + ¬e.notstatic; + </refsect1> + <refsect1 id="package.networking.net-ftp.put.example"> + &title.example; + <example> + <title>Using <function>put</function></title> + <programlisting role="php"> + <![CDATA[ <?php - - var_dump($test->put('/tmp/downloaded.zip', 'foo/bar.zip', true, FTP_BINARY)); - + + var_dump($test->put('/tmp/downloaded.zip', 'foo/bar.zip', true, FTP_BINARY)); + ?> -]]> - </programlisting> - </example> - </refsect1> - </refentry> +]]> + </programlisting> + </example> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -177,4 +198,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/peardoc/en/package/networking/net-ftp/net-ftp.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/en/package/networking/net-ftp/net-ftp.xml diff -u peardoc/en/package/networking/net-ftp/net-ftp.xml:1.3 peardoc/en/package/networking/net-ftp/net-ftp.xml:1.4 --- peardoc/en/package/networking/net-ftp/net-ftp.xml:1.3 Sat May 14 18:24:02 2005 +++ peardoc/en/package/networking/net-ftp/net-ftp.xml Tue Jan 16 07:39:15 2007 @@ -1,78 +1,79 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Id: net-ftp.xml,v 1.4 2007/01/16 07:39:15 moosh Exp $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.networking.net-ftp.net-ftp"> - <refnamediv> - <refname>Net_FTP::Net_FTP()</refname> - <refpurpose>constructor</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'Net/FTP.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>object <function>Net_FTP::Net_FTP</function></funcdef> - <paramdef> - string <parameter><optional>$host = null</optional></parameter> - </paramdef> - <paramdef> - int <parameter><optional>$port = null</optional></parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.networking.net-ftp.net-ftp.desc"> - &title.desc; - <para> - Create a new object for communication with FTP servers. - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.net-ftp.parameter"> - &title.param; - <para> - <itemizedlist> - <listitem> - <para> - <parameter><optional>string $host = null</optional></parameter> - The host to connect to ( - either an IP address or a domain name). - </para> - </listitem> - <listitem> - <para> - <parameter><optional>int $port = null</optional></parameter> - The port to connect to on the - server. - </para> - </listitem> - </itemizedlist> - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.net-ftp.return"> - &title.returns; - <para> - <parameter>object</parameter> - the new Net_FTP object. - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.net-ftp.note"> - &title.note; - ¬e.notstatic; - </refsect1> - <refsect1 id="package.networking.net-ftp.net-ftp.example"> - &title.example; - <example> - <title>Using <function>Net_FTP</function></title> - <programlisting role="php"> - <![CDATA[ -<?php - + <refnamediv> + <refname>Net_FTP::Net_FTP()</refname> + <refpurpose>constructor</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> require_once 'Net/FTP.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>object <function>Net_FTP::Net_FTP</function></funcdef> + <paramdef> + string <parameter><optional>$host = null</optional></parameter> + </paramdef> + <paramdef> + int <parameter><optional>$port = null</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.networking.net-ftp.net-ftp.desc"> + &title.desc; + <para> + Create a new object for communication with FTP servers. + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.net-ftp.parameter"> + &title.param; + <para> + <itemizedlist> + <listitem> + <para> + <parameter><optional>string $host = null</optional></parameter> - The host to connect to ( + either an IP address or a domain name). + </para> + </listitem> + <listitem> + <para> + <parameter><optional>int $port = null</optional></parameter> - The port to connect to on the + server. + </para> + </listitem> + </itemizedlist> + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.net-ftp.return"> + &title.returns; + <para> + <parameter>object</parameter> - the new Net_FTP object. + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.net-ftp.note"> + &title.note; + ¬e.notstatic; + </refsect1> + <refsect1 id="package.networking.net-ftp.net-ftp.example"> + &title.example; + <example> + <title>Using <function>Net_FTP</function></title> + <programlisting role="php"> + <![CDATA[ +<?php + + require_once 'Net/FTP.php'; - $test = new Net_FTP('ftp.mydomain.com', 21); + $test = new Net_FTP('ftp.mydomain.com', 21); ?> -]]> - </programlisting> - </example> - </refsect1> - </refentry> +]]> + </programlisting> + </example> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -91,4 +92,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/peardoc/en/package/networking/net-ftp/mdtm.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/en/package/networking/net-ftp/mdtm.xml diff -u peardoc/en/package/networking/net-ftp/mdtm.xml:1.3 peardoc/en/package/networking/net-ftp/mdtm.xml:1.4 --- peardoc/en/package/networking/net-ftp/mdtm.xml:1.3 Tue Aug 26 09:27:50 2003 +++ peardoc/en/package/networking/net-ftp/mdtm.xml Tue Jan 16 07:39:15 2007 @@ -1,148 +1,159 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Id: mdtm.xml,v 1.4 2007/01/16 07:39:15 moosh Exp $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.networking.net-ftp.mdtm"> - <refnamediv> - <refname>Net_FTP::mdtm()</refname> - <refpurpose>returns the last modification date of a file.</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'Net/FTP.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>mixed <function>Net_FTP::mdtm</function></funcdef> - <paramdef> - string <parameter>$file</parameter> - </paramdef> - <paramdef> - string <parameter><optional>$format = null</optional></parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.networking.net-ftp.mdtm.desc"> - &title.desc; - <para> - gives you the last modification-date of a file either as a unix timestamp or in a formated - date. - </para> - </refsect1> - <refsect1 id="package.networking.net-finger.mdtm.parameter"> - &title.param; - <para> - <itemizedlist> - <listitem> - <para> - <parameter>string $file</parameter> - The file to check. - </para> - <para> - <parameter><optional>string $format</optional></parameter> - A date()-function styled format-string. - </para> - </listitem> - </itemizedlist> - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.mdtm.return"> - &title.returns; - <para> - <parameter>mixed</parameter> - the last modification date on success, otherwise PEAR::Error. - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.mdtm.throws"> - &title.throws; - <para> - Several errors may be returned by mdtm. The errornumber is unspecific (until now) and will not - tell you anything about the errormessage. Possible errors are: - </para> - - - + <refnamediv> + <refname>Net_FTP::mdtm()</refname> + <refpurpose>returns the last modification date of a file.</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'Net/FTP.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>mixed <function>Net_FTP::mdtm</function></funcdef> + <paramdef> + string <parameter>$file</parameter> + </paramdef> + <paramdef> + string <parameter><optional>$format = null</optional></parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.networking.net-ftp.mdtm.desc"> + &title.desc; + <para> + gives you the last modification-date + of a file either as a unix timestamp + or in a formated date. + </para> + </refsect1> + <refsect1 id="package.networking.net-finger.mdtm.parameter"> + &title.param; + <para> + <itemizedlist> + <listitem> <para> - <table> - <title>&title.throws.errortable;</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Error message</entry> - <entry>Description</entry> - <entry>Solution</entry> - </row> - </thead> - - <tbody> - <row> - <entry> - Filename '$file' seems to be a directory. - </entry> - <entry> - The filename you gave the method does not reference a regular-file but a - directory. - </entry> - <entry> - Specify a correct filenamepath (eg. <constant>/my/file/path/foo.html</constant>, <constant>../foo.html</constant>). - </entry> - </row> - <row> - <entry> - Could not get last-modification-date of '$file'. - </entry> - <entry> - The last-modification date could not be determined by PHP. Reasons for this may be - that your FTP-server does not support the used command or that you gave the function a - non existent file as reference. - </entry> - <entry> - <itemizedlist> - <listitem> - <simpara>check the given file for existence</simpara> - </listitem> - <listitem> - <simpara>contact the FTP server's admin</simpara> - </listitem> - </itemizedlist> - </entry> - </row> - - - <row> - <entry> - Date-format failed on timestamp '$res'. - </entry> - <entry> - The given format-string was not well formated. - </entry> - <entry> - Check the documentation of the PHP function date(). - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.mdtm.note"> - &title.note; - ¬e.notstatic; - </refsect1> - <refsect1 id="package.networking.net-ftp.mdtm.example"> - &title.example; - <example> - <title>Using <function>mdtm</function></title> - <programlisting role="php"> - <![CDATA[ + <parameter>string $file</parameter> - The file to check. + </para> + <para> + <parameter><optional>string $format</optional></parameter> + - A date()-function styled format-string. + </para> + </listitem> + </itemizedlist> + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.mdtm.return"> + &title.returns; + <para> + <parameter>mixed</parameter> + - the last modification date on success, otherwise PEAR::Error. + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.mdtm.throws"> + &title.throws; + <para> + Several errors may be returned by mdtm. + + The errornumber is unspecific (until now) and will not + tell you anything about the errormessage. + + Possible errors are: + </para> + + + + <para> + <table> + <title>&title.throws.errortable;</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Error message</entry> + <entry>Description</entry> + <entry>Solution</entry> + </row> + </thead> + + <tbody> + <row> + <entry> + Filename '$file' seems to be a directory. + </entry> + <entry> + The filename you gave the method does not reference + a regular-file but a directory. + </entry> + <entry> + Specify a correct filenamepath + (eg. <constant>/my/file/path/foo.html</constant>, + <constant>../foo.html</constant>). + </entry> + </row> + <row> + <entry> + Could not get last-modification-date of '$file'. + </entry> + <entry> + The last-modification date could not be determined by PHP. + + Reasons for this may be that your FTP-server + does not support the used command + or that you gave the function a + non existent file as reference. + </entry> + <entry> + <itemizedlist> + <listitem> + <simpara>check the given file for existence</simpara> + </listitem> + <listitem> + <simpara>contact the FTP server's admin</simpara> + </listitem> + </itemizedlist> + </entry> + </row> + <row> + <entry> + Date-format failed on timestamp '$res'. + </entry> + <entry> + The given format-string was not well formated. + </entry> + <entry> + Check the documentation of the PHP function date(). + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.mdtm.note"> + &title.note; + ¬e.notstatic; + </refsect1> + <refsect1 id="package.networking.net-ftp.mdtm.example"> + &title.example; + <example> + <title>Using <function>mdtm</function></title> + <programlisting role="php"> + <![CDATA[ <?php - - var_dump($test->mdtm('/foo/bar')); - // returns the last modification time in german timeformat - var_dump($test->mdtm('/foo/bar', 'd.m.Y, H:i')); - + var_dump($test->mdtm('/foo/bar')); + + // returns the last modification time in german timeformat + var_dump($test->mdtm('/foo/bar', 'd.m.Y, H:i')); + ?> -]]> - </programlisting> - </example> - </refsect1> - </refentry> +]]> + </programlisting> + </example> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -161,4 +172,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/peardoc/en/package/networking/net-ftp/pwd.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/en/package/networking/net-ftp/pwd.xml diff -u peardoc/en/package/networking/net-ftp/pwd.xml:1.2 peardoc/en/package/networking/net-ftp/pwd.xml:1.3 --- peardoc/en/package/networking/net-ftp/pwd.xml:1.2 Sun Aug 24 15:29:00 2003 +++ peardoc/en/package/networking/net-ftp/pwd.xml Tue Jan 16 07:39:15 2007 @@ -1,61 +1,62 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Id: pwd.xml,v 1.3 2007/01/16 07:39:15 moosh Exp $ --> +<!-- $Revision: 1.3 $ --> <refentry id="package.networking.net-ftp.pwd"> - <refnamediv> - <refname>Net_FTP::pwd()</refname> - <refpurpose>returns the directory on the server you are currently in.</refpurpose> - </refnamediv> - <refsynopsisdiv> - <funcsynopsis> - <funcsynopsisinfo> - require_once 'Net/FTP.php'; - </funcsynopsisinfo> - <funcprototype> - <funcdef>mixed <function>Net_FTP::pwd</function></funcdef> - <paramdef></paramdef> - </funcprototype> - </funcsynopsis> - </refsynopsisdiv> - <refsect1 id="package.networking.net-ftp.pwd.desc"> - &title.desc; - <para> - Returns the directory currently selected on the server. - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.pwd.return"> - &title.returns; - <para> - <parameter>mixed</parameter> - path (absolute) as string on success, otherwise PEAR::Error. - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.pwd.throws"> - &title.throws; - <para> - The returned &class.pear-error; object in case of an error - is unspecific. You can ignore the errornumber and errormessage, - because only "Could not determine the actual path" will be returned if the - operation fails. - </para> - </refsect1> - <refsect1 id="package.networking.net-ftp.pwd.note"> - &title.note; - ¬e.notstatic; - </refsect1> - <refsect1 id="package.networking.net-ftp.pwd.example"> - &title.example; - <example> - <title>Using <function>pwd</function></title> - <programlisting role="php"> - <![CDATA[ + <refnamediv> + <refname>Net_FTP::pwd()</refname> + <refpurpose>returns the directory on the server you are currently in.</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'Net/FTP.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>mixed <function>Net_FTP::pwd</function></funcdef> + <paramdef></paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.networking.net-ftp.pwd.desc"> + &title.desc; + <para> + Returns the directory currently selected on the server. + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.pwd.return"> + &title.returns; + <para> + <parameter>mixed</parameter> - path (absolute) as string on success, otherwise PEAR::Error. + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.pwd.throws"> + &title.throws; + <para> + The returned &class.pear-error; object in case of an error + is unspecific. You can ignore the errornumber and errormessage, + because only "Could not determine the actual path" will be returned if the + operation fails. + </para> + </refsect1> + <refsect1 id="package.networking.net-ftp.pwd.note"> + &title.note; + ¬e.notstatic; + </refsect1> + <refsect1 id="package.networking.net-ftp.pwd.example"> + &title.example; + <example> + <title>Using <function>pwd</function></title> + <programlisting role="php"> + <![CDATA[ <?php - - echo $test->pwd(); + + echo $test->pwd(); ?> -]]> - </programlisting> - </example> - </refsect1> - </refentry> +]]> + </programlisting> + </example> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml