text
stringlengths
1
254
output
stringlengths
2
255
device
次の要素を有するファイルの統計情報の配列を返します。
Home
blocksize for filesystem I/O *
ftell
この結果はキャッシュされます。より詳細な情報については、 clearstatcache() を参照下さい。
Prev
(PHP 3, PHP 4)
Returns the position of the file pointer referenced by handle; i.e., its offset into the file stream.
fp が示すファイルポインタの位置、 すなわちファイル・ストリーム上のオフセットを返します。
If an error occurs, returns FALSE.
エラーが起こった堥Ј FALSE を返します。
See also fopen(), popen(), fseek(), and rewind().
ファイルポインタは有効なものでなければならず、また fopen() 、 popen() で正常にオープンされたファイルを指している必要があります。
Home
fopen(), popen(), fseek(), rewind() も参照下さい。
Warning
(PHP 4 = 4.2.0)
Prev
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
Prev
(PHP 3 = 3.0.13, PHP 4)
Changes to the parent directory.
親ディレクトリに移動します。
Prev
成功時に TRUE 、エラー時に FALSE を返します。
Prev
(PHP 3 = 3.0.13, PHP 4)
Changes to the specified directory.
指定した directory に移動します。
Prev
成功時に TRUE 、エラー時に FALSE を返します。
Prev
(PHP 4 = 4.2.0)
ftp_close() closes ftp_stream and releases the resource.
注意 この関数はCVS版でのみ利用可能です。
See also ftp_connect()
ftp_close() は、 ftp_stream を閉じ、リソースを解放します。こ のリソースを再使用することはできませんが、 ftp_connect() で新規の接続を作成する必要があり ます。
Returns a FTP stream on success or FALSE on error.
(PHP 3 = 3.0.13, PHP 4)
The port The port parameter specifies an alternate port to connect to.
成功時にFTPストリーム、エラーの場合に FALSE を返します。
The timeout parameter specifies the timeout for all subsequent network operations.
ftp_connect() は、指定した host へのFTP接続をオープンします。 port パラメータは別のポートに接続することを 指定します。これを省略するか0にした場合、デフォルトのFTPポート、 つまり、21が使用されます。
The timeout can be changed and queried at any time with ftp_set_option() and ftp_get_option().
パラメータ timeout は、以降の全ての ネットワーク処理のタイムアウトを指定します。省略された場合、 デフォルト値は、90秒となります。timeoutは、 ftp_set_option() および ftp_get_option() で いつでも変更および取得可能です。
Prev
注意 このパラメータは、CVS版でのみ利用可能です。
Prev
(PHP 3 = 3.0.13, PHP 4)
ftp_delete() deletes the file specified by path from the FTP server.
ftp_delete() は、 path で指定したファイルをFTPサーバーから削除します。
Prev
成功時に TRUE 、エラー時に FALSE を返します。
(PHP 4 = 4.0.3)
(PHP 4 = 4.0.3)
Returns the output of the command if successful; otherwise returns FALSE.
ftpサーバにSITE EXEC command リクエストを送 信する。リクエストを失敗した場合、 FALSE を返し、その他の場合は、 コマンドの出力を返します。
(PHP 3 = 3.0.13, PHP 4)
(PHP 3 = 3.0.13, PHP 4)
The transfer mode specified must be either FTP_ASCII or FTP_BINARY.
ftp_fget() は、FTP サーバーから remote_file を取得し、指定したファイルポイ ンタ fp に書きこみます。転送モード mode には、 FTP_ASCII または FTP_BINARY のどちらかを指定する必要があ ります。
Returns TRUE on success or FALSE on failure.
成功時に TRUE 、エラー時に FALSE を返します。
(PHP 3 = 3.0.13, PHP 4)
(PHP 3 = 3.0.13, PHP 4)
The results are stored in remote_file on the FTP server.
ftp_fput() は、ファイルポインタ fp からデータをファイルの終端まで アップロードします。結果は、FTPサーバーの remote_file に保存されます。 転送モード mode には、 FTP_ASCII または FTP_BINARY のどちらかを指定する必要があります。
Returns TRUE on success or FALSE on failure.
成功時に TRUE 、エラー時に FALSE を返します。
(PHP 3 = 3.0.13, PHP 4)
(PHP 3 = 3.0.13, PHP 4)
The transfer mode specified must be either FTP_ASCII or FTP_BINARY.
ftp_get() は、FTPサーバーから remote_file を取得し、ローカルシステムの local_file に保存します。転送モード mode には、 FTP_ASCII ま たは FTP_BINARY のどちらかを指定する必要があ ります。
Returns TRUE on success or FALSE on failure.
成功時に TRUE 、エラー時に FALSE を返します。
Prev
ftp_fget() も参照下さい。
(PHP 4 = 4.2.0)
(PHP 4 = 4.2.0)
This function is only available in CVS.
注意 この関数は、CVS版でのみ利用可能です。
In the latter case, a warning message is also thrown.
成功時に値、指定した option がサポートされて いない場合に FALSE を返します。後者では、警告メッセージも発生しま す。
Currently, the following options are supported:
この関数は、指定した FTP stream に関して指定 した option に関する value を返します。現在、以下のオプションが サポートされています。
Example 1. ftp_get_option() example
表 1サポートされる実行時FTPオプション
Prev
例 1 ftp_get_option() の例
Prev
(PHP 3 = 3.0.13, PHP 4)
Logs in to the given FTP stream.
指定したFTPストリームにログインします。
Prev
成功時に TRUE 、エラー時に FALSE を返します。
(PHP 3 = 3.0.13, PHP 4)
(PHP 3 = 3.0.13, PHP 4)
If an error occurs, or the file does not exist, -1 is returned.
ftp_mdtm() はあるファイルについて最後に修正さ れた時間を調べ、UNIXタイムスタンプとして返します。エラーを生じた 場合、またはファイルが存在しない場合、-1 が返されます。全てのサー バーがこの機能をサポートしているわけではないことに注意してください。
Note:
成功時にUNIXのタイムスタンプ、エラー時に -1 を返します。
Prev
注意 ftp_mdtm() はディレクトリについては動作しません。
Prev
(PHP 3 = 3.0.13, PHP 4)
Creates the specified directory.
指定した directory を作成します。
Prev
成功した時に、新規に作成したディレクトリ名、エラー時に FALSE を返 します。
Prev
(PHP 4 = 4.3.0)
Continues retrieving / sending a file nbronously
Continues retrieving/sending a file nbronously
Prev
Returns FTP_FAILED or FTP_FINISHED or FTP_MOREDATA.
ftp_nb_fget() retrieves remote_file from the FTP server, and writes it to the given file pointer, fp.
(PHP 4 = 4.3.0)
See also ftp_nb_get().
成功した場合に TRUE 、失敗した場合に FALSE を返します。
ftp_nb_continue
See also ftp_nb_get().
(PHP 4 = 4.3.0)
(PHP 4 = 4.3.0)
The difference between this function and the ftp_fput() is that this function uploads the file asynchronously, so your program can perform other operations while the file is being downloaded.
成功した場合に TRUE 、失敗した場合に FALSE を返します。
See also ftp_nb_put(), ftp_nb_continue(), ftp_put() and ftp_fput().
See also ftp_nb_put(), ftp_nb_continue(), ftp_put() and ftp_fput().
ftp_nb_get() retrieves remote_file from the FTP server, and saves it to local_file locally.
(PHP 4 = 4.3.0)
Example 1. ftp_nb_get() example
成功した場合に TRUE 、失敗した場合に FALSE を返します。
Example 2.
例 1 ftp_nb_get() example
Resuming a download at position 100 to a new file with ftp_nb_get()
例 3 Resuming a download at position 100 to a new file with ftp_nb_get()
In the example above, "newfile" is 100 bytes smaller than "README "on the FTP server because we started reading at offset 100.
In the example above, "newfile" is 100 bytes smaller than "README" on the FTP server because we started reading at offset 100. If we have not have disabled FTP_AUTOSEEK, the first 100 bytes of newfile will be '\0'.
See also ftp_nb_fget(), ftp_nb_continue(), ftp_get() and ftp_fget().
See also ftp_nb_fget(), ftp_nb_continue(), ftp_get() and ftp_fget().
ftp_nb_put() stores local_file on the FTP server, as remote_file.
(PHP 4 = 4.3.0)
Example 1. ftp_nb_put() example
成功した場合に TRUE 、失敗した場合に FALSE を返します。
Resuming an upload with ftp_nb_put()
例 1 ftp_nb_put() example
Prev
例 2Resuming an upload with ftp_nb_put()
ftp_nb_get
See also ftp_nb_fput(), ftp_nb_continue(), ftp_put() and ftp_fput().
Prev
(PHP 3 = 3.0.13, PHP 4)
Returns an array of filenames from the specified directory on success or FALSE on error.
成功時に指定したディレクトリにあるファイル名の配列を、エラー時に FALSE を返します。
ftp_pasv() turns on passive mode if the pasv parameter is TRUE.
(PHP 3 = 3.0.13, PHP 4)
In passive mode, data connections are initiated by the client, rather than by the server.
ftp_pasv() は、 pasv パ ラメータが TRUE の場合にパッシブモードをオンにします。 (pasv が FALSE の場合は、パッシブモードを オフにします) パッシモードでは、データ接続はサーバーではなくクラ イアントにより初期化されます。
Prev
成功時に TRUE 、エラー時に FALSE を返します。
(PHP 3 = 3.0.13, PHP 4)
(PHP 3 = 3.0.13, PHP 4)
The transfer mode specified must be either FTP_ASCII or FTP_BINARY.
ftp_put() は local_file を remote_file として FTP サーバーに保存します。 mode には、 FTP_ASCII または FTP_BINARY
Returns TRUE on success or FALSE on failure.
成功時に TRUE 、エラー時に FALSE を返します。
$upload = ftp_put( $conn_id, $destination_file, $source_file, FTP_ASCII);
例 1 ftp_put() の例
Prev
(PHP 3 = 3.0.13, PHP 4)
Returns the current directory or FALSE on error.
カレントのディレクトリを返します。エラーの場合は、 FALSE を返し ます。
(PHP 3 = 3.0.13, PHP 4)
(PHP 3 = 3.0.13, PHP 4)
Prev
ftp_quit() は、 ftp_close のエイリアスです。
Each array element corresponds to one line of text.
(PHP 3 = 3.0.13, PHP 4)
The system type identifier returned by ftp_systype() can be used to determine how the results should be interpreted.
ftp_rawlist() は、FTP LIST コマンドを実行し、 結果を配列として返します。各配列要素は、一行分のテキストに対応し ます。出力に関する処理は全く行われません。結果の解釈の仕方を定義 するために ftp_systype() から返されるシステム 型IDをを使用することができます。
Prev
(PHP 3 = 3.0.13, PHP 4)
ftp_rename() renames the file or directory that is currently named from to the new name to, using the FTP stream ftp_stream.
ftp_rename() は、 FTP ストリーム ftp_stream において from という名前のファイルまたはディレクトリを to に変更します。
Prev
成功時に TRUE 、エラー時に FALSE を返します。
Prev
(PHP 3 = 3.0.13, PHP 4)
Removes the specified directory.
指定した directory を削除します。
Prev
成功時に TRUE 、エラー時に FALSE を返します。
Note:
(PHP 4 = 4.2.0)
Returns TRUE if the option could be set; FALSE Returns TRUE if the option could be set; FALSE if not.
注意 この関数はCVS版でのみ利用可能です。
This function controls various runtime options for the specified FTP stream.
オプションが設定できる場合に TRUE 、そうでない場合に FALSE を返し ます。 option がサポートされていないか、指定 された value が指定した option が期待する値に一致しない場合に警告メッ セージが発生します。
The default timeout is 90 seconds.
この関数は、指定したFTPストリームに関して種々の実行時オプションを 制御します。パラメータ value は変更するパラ メータ option に依存します。 現在、以下のオプションがサポートされています。