previousNet_FTP::mkdir() (Previous) (Next) Net_FTP::mdtm()next

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Net_FTP::execute()

Net_FTP::execute() – サーバ上でコマンドを実行する

Synopsis

require_once 'Net/FTP.php';

mixed Net_FTP::execute ( string $command )

Description

指定されたコマンドをサーバ上で実行します(SITE EXEC コマンド自体は、 メソッドによって付け加えられます)。

Parameter

  • string $command - 実行されるコマンド(SITE EXEC を除く)

Return value

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

Throws

エラー時に返される PEAR_Error オブジェクトの中身は定義されています。 エラー番号は常に1種類のみです。また、エラーメッセージは、 "Execution of command '$command' failed" という形式になります。

Note

This function can not be called statically.

Example

execute() の使用

<?php
     
    $test
->execute($myCommand);

?>
previousNet_FTP::mkdir() (Previous) (Next) Net_FTP::mdtm()next

Download Documentation Last updated: Sun, 21 Jun 2009
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.