API16:JFTP
From Joomla! Documentation
(Difference between revisions)
(New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JFTP}}
===Defined in===
libraries/j...) |
|||
| Line 84: | Line 84: | ||
|Method to list the contents of a directory on the FTP server | |Method to list the contents of a directory on the FTP server | ||
|} | |} | ||
| + | |||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.client.ftp' );</source> | <source lang="php">jimport( 'joomla.client.ftp' );</source> | ||
Latest revision as of 05:02, 30 March 2010
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
[Edit Descripton] JFTP is an FTP client class, that allows you to connect and interact with an FTP server.
Contents |
[edit] Defined in
libraries/joomla/client/ftp.php
[edit] Methods
| Method name | Description |
|---|---|
| __construct | JFTP object constructor |
| __destruct | JFTP object destructor |
| getInstance | Returns the global FTP connector object, only creating it if it doesn't already exist. |
| setOptions | Set client options |
| connect | Method to connect to a FTP server |
| isConnected | Method to determine if the object is connected to an FTP server |
| login | Method to login to a server once connected |
| quit | Method to quit and close the connection |
| pwd | Method to retrieve the current working directory on the FTP server |
| syst | Method to system string from the FTP server |
| chdir | Method to change the current working directory on the FTP server |
| reinit | Method to reinitialise the server, ie. need to login again |
| rename | Method to rename a file/folder on the FTP server |
| chmod | Method to change mode for a path on the FTP server |
| delete | Method to delete a path [file/folder] on the FTP server |
| mkdir | Method to create a directory on the FTP server |
| restart | Method to restart data transfer at a given byte |
| create | Method to create an empty file on the FTP server |
| read | Method to read a file from the FTP server's contents into a buffer |
| get | Method to get a file from the FTP server and save it to a local file |
| store | Method to store a file to the FTP server |
| write | Method to write a string to the FTP server |
| listNames | Method to list the filenames of the contents of a directory on the FTP server |
| listDetails | Method to list the contents of a directory on the FTP server |
[edit] Importing
jimport( 'joomla.client.ftp' );
[edit] Examples
<CodeExamplesForm />

This example was originally contributed by User:Batch1211.