Net_FTP::pwd() (Previous) (Next) Net_FTP::execute()

View this page in Last updated: Sun, 05 Oct 2008
English | French | German | Hungarian | Japanese | Polish | Spanish | Plain HTML

Net_FTP::mkdir()

Net_FTP::mkdir() -- ディレクトリを作成する

説明

FTP サーバ上に新しいディレクトリを作成します。 最初のパラメータは 相対パスあるいは絶対パスで指定できます。 ふたつ目の(省略可能な) パラメータを指定すると、ディレクトリを再帰的に作成することができます (つまり、たとえ './my' が存在しなくても './my/new/dir' を作成できる ということです。 3 つのディレクトリがすべて作成されます)。

パラメータ

  • string $directory string $directory - 作成したいディレクトリ。 絶対パス(例. '/home/mydir')あるいは相対パス(例. 'mydir')。

返り値

mixed - 成功時には true 、それ以外は PEAR::Error

例外・エラー

エラー時に返される PEAR_Error オブジェクトの中身は定義されています。 エラー番号は常に1種類のみです。 また、エラーメッセージは、エラーが起こった ディレクトリを含む "Creation of '$dir' failed" という形式になります。

注意

この関数は、スタティックにコールする ことはできません。

Net_FTP::pwd() (Previous) (Next) Net_FTP::execute()

Download Documentation Last updated: Sun, 05 Oct 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.