« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 18 for sFTP (0.001 sec.)
ssh2_sftp_rmdir — ディレクトリを削除する | PHP 8.3 10020
ssh2_sftp_rmdir (PECL ssh2 >= 0.9.0) ssh2_sftp_rmdir — ディレクトリを削除する 説明 function ssh2_sftp_rmdir ( resource $sftp , string $dirname ): bool リモートのファイルサーバーからディレクトリを削除します。 この関数は ssh2.sftp:// ラッパー ... を使用した場合の rmdir() と同様です。 パラメータ sftp ssh2_sftp() でオープンした SSH2 SFTP リソース。 dirname 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 ... hp $connection = ssh2_connect ( 'shell.example.com' , 22 ); ssh2_auth_password ( $connection , 'username' , 'password' ); $sftp = ssh2_sftp ( $connection ); ssh2_sftp_rmdir ( $sftp , '/home/username/deltodel' ); /* もしくは次の通り: rmdir("ssh2.sftp: ... //$sftp/home/username/dirtodel"); */ ?> 参考 rmdir() - ディレクトリを削除する ssh2_sftp_mkdir() - ディレクトリを作成する 他のマニュ ...
https://man.mtool.work/php/8.3/function.ssh2-sftp-rmdir.html
ssh2_sftp_mkdir — ディレクトリを作成する | PHP 8.3 9883
ssh2_sftp_mkdir (PECL ssh2 >= 0.9.0) ssh2_sftp_mkdir — ディレクトリを作成する 説明 function ssh2_sftp_mkdir ( resource $sftp , string $dirname , int $mode = 0777 , bool $recursive = false ): bool リモートファイルサーバーに mode で指定された ... 権限でディレクトリを作成します。 この関数は ssh2.sftp:// ラッパーを使用した場合の mkdir() と同様です。 パラメータ sftp ssh2_sftp() でオープンした SSH2 SFTP リソース。 dirname 新 ... hp $connection = ssh2_connect ( 'shell.example.com' , 22 ); ssh2_auth_password ( $connection , 'username' , 'password' ); $sftp = ssh2_sftp ( $connection ); ssh2_sftp_mkdir ( $sftp , '/home/username/newdir' ); /* もしくは次の通り: mkdir("ssh2.sftp:// ... $sftp/home/username/newdir"); */ ?> 参考 mkdir() - ディレクトリを作る ssh2_sftp_rmdir() - ディレクトリを削除する 他のマニュアルの ...
https://man.mtool.work/php/8.3/function.ssh2-sftp-mkdir.html
ssh2_sftp — SFTP サブシステムを初期化する | PHP 8.3 9848
ssh2_sftp (PECL ssh2 >= 0.9.0) ssh2_sftp — SFTP サブシステムを初期化する 説明 function ssh2_sftp ( resource $session ): resource | false すでに接続された SSH2 サーバーから SFTP サブシステムを要求します。 パラメータ session ssh2_connect() の ... コールによって取得した SSH 接続リンク ID。 戻り値 このメソッドは全ての他の ssh2_sftp_*() や ssh2.sftp:// fopen ラッパーで使用する SSH2 SFTP リソースを返します。 失敗した場合に false を返します 例 例1 SFTP 経 ... hp $connection = ssh2_connect ( 'shell.example.com' , 22 ); ssh2_auth_password ( $connection , 'username' , 'password' ); $sftp = ssh2_sftp ( $connection ); $stream = fopen ( 'ssh2.sftp://' . intval ( $sftp ) . '/path/to/file' , 'r' ); ?> 参考 ssh2_s ...
https://man.mtool.work/php/8.3/function.ssh2-sftp.html
ssh2_sftp_chmod — ファイルのモードを変更する | PHP 8.3 9814
ssh2_sftp_chmod (PECL ssh2 >= 0.12) ssh2_sftp_chmod — ファイルのモードを変更する 説明 function ssh2_sftp_chmod ( resource $sftp , string $filename , int $mode ): bool 指定したファイルのモードの mode への変更を試みます。 パラメータ sftp SSH2 ... SFTP リソース。 ssh2_sftp() で開いたもの。 filename ファイルへのパス。 mode ファイルのパーミッション。このパラメータの詳細は ch ... hp $connection = ssh2_connect ( 'shell.example.com' , 22 ); ssh2_auth_password ( $connection , 'username' , 'password' ); $sftp = ssh2_sftp ( $connection ); ssh2_sftp_chmod ( $sftp , '/somedir/somefile' , 0755 ); ?> 参考 chmod() - ファイルのモードを変 ... 更する ssh2_sftp() - SFTP サブシステムを初期化する ssh2_connect() - SSH サーバーに接続する 他のマニュアルの関連ページ Linux JM chmod(1) Lin ...
https://man.mtool.work/php/8.3/function.ssh2-sftp-chmod.html
ssh2_sftp_realpath — 指定されたパス文字列の実際のパスを解決する | PHP 8.3 9814
ssh2_sftp_realpath (PECL ssh2 >= 0.9.0) ssh2_sftp_realpath — 指定されたパス文字列の実際のパスを解決する 説明 function ssh2_sftp_realpath ( resource $sftp , string $filename ): string | false filename をリモートファイルシステム上の有効な実際 ... のパスに変換します。 パラメータ sftp ssh2_sftp() でオープンした SSH2 SFTP リソース。 filename 戻り値 実際のパスを表す文字列を返します。失敗した場合に false を返 ... hp $connection = ssh2_connect ( 'shell.example.com' , 22 ); ssh2_auth_password ( $connection , 'username' , 'password' ); $sftp = ssh2_sftp ( $connection ); $realpath = ssh2_sftp_realpath ( $sftp , '/home/username/../../../..//./usr/../etc/passwd' ); ... /* $realpath は次の通り: '/etc/passwd' */ ?> 参考 realpath() - 正規化された絶対パス名を返す ssh2_sftp_symlink() - シンボリックリンクを作成する ssh2_sftp_readlink() - シンボリックリンクのターゲットを返す 他のマニュアルの関連ペ ...
https://man.mtool.work/php/8.3/function.ssh2-sftp-realpath.html
ssh2_sftp_rename — リモートファイルを改名する | PHP 8.3 9780
ssh2_sftp_rename (PECL ssh2 >= 0.9.0) ssh2_sftp_rename — リモートファイルを改名する 説明 function ssh2_sftp_rename ( resource $sftp , string $from , string $to ): bool リモートファイルシステム上のファイルを改名します。 パラメータ sftp ssh2_ ... sftp() でオープンした SSH2 SFTP リソース。 from 名前を変更したいファイル。 to from のかわりに新しく使用したいファイル名。 戻り値 成功した場合に true を、失 ... 敗した場合に false を返します。 例 例1 sftp 経由でのファイルの改名 <?php $connection = ssh2_connect ( 'shell.example.com' , 22 ); ssh2_auth_password ( $connection , ' ... username' , 'password' ); $sftp = ssh2_sftp ( $connection ); ssh2_sftp_rename ( $sftp , '/home/username/oldname' , '/home/username/newname' ); ?> 参考 ren ...
https://man.mtool.work/php/8.3/function.ssh2-sftp-rename.html
ssh2_sftp_stat — リモートファイルシステム上のファイルの情報を取得する | PHP 8.3 9745
ssh2_sftp_stat (PECL ssh2 >= 0.9.0) ssh2_sftp_stat — リモートファイルシステム上のファイルの情報を取得する 説明 function ssh2_sftp_stat ( resource $sftp , string $path ): array | false シンボリックリンクを辿って リモートファイルシステム上のフ ... ァイルの情報を取得します。 この関数は ssh2.sftp:// ラッパーを使用した場合の stat() 関数と同様です。 返される値も同じです。 パラメータ sftp ssh2_sftp() でオープンした SSH2 ... SFTP リソース。 path 戻り値 成功した場合、指定したファイルの統計情報の配列を返します。 失敗した場合に false を返します。 どのよ ... うな値が返されるのかについての詳細は、 stat() を参照ください。 例 例1 SFTP 経由でのファイルの情報の取得 <?php $connection = ssh2_connect ( 'shell.example.com' , 22 ); ssh2_auth_password ( $connecti ...
https://man.mtool.work/php/8.3/function.ssh2-sftp-stat.html
ssh2_sftp_symlink — シンボリックリンクを作成する | PHP 8.3 9745
ssh2_sftp_symlink (PECL ssh2 >= 0.9.0) ssh2_sftp_symlink — シンボリックリンクを作成する 説明 function ssh2_sftp_symlink ( resource $sftp , string $target , string $link ): bool リモートファイルシステム上に target を指す link という名称のシン ... ボリックリンクを作成します。 パラメータ sftp ssh2_sftp() でオープンした SSH2 SFTP リソース。 target シンボリックリンクのリンク対象。 link 戻り値 成功した場合に true を ... hp $connection = ssh2_connect ( 'shell.example.com' , 22 ); ssh2_auth_password ( $connection , 'username' , 'password' ); $sftp = ssh2_sftp ( $connection ); ssh2_sftp_symlink ( $sftp , '/var/run/mysql.sock' , '/tmp/mysql.sock' ); ?> 参考 ssh2_sftp_re ...
https://man.mtool.work/php/8.3/function.ssh2-sftp-symlink.html
ssh2_sftp_unlink — ファイルを削除する | PHP 8.3 9745
ssh2_sftp_unlink (PECL ssh2 >= 0.9.0) ssh2_sftp_unlink — ファイルを削除する 説明 function ssh2_sftp_unlink ( resource $sftp , string $filename ): bool リモートファイルシステム上のファイルを削除します。 パラメータ sftp ssh2_sftp() でオープン ... した SSH2 SFTP リソース。 filename 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 ファイルの削除 <?php $connecti ... on = ssh2_connect ( 'shell.example.com' , 22 ); ssh2_auth_password ( $connection , 'username' , 'password' ); $sftp = ssh2_sftp ( $connection ); ssh2_sftp_unlink ( $sftp , '/home/username/stale_file' ); ?> 参考 unlink() - ファイルを削除す ...
https://man.mtool.work/php/8.3/function.ssh2-sftp-unlink.html
ssh2_sftp_lstat — シンボリックリンクの情報を取得する | PHP 8.3 9711
ssh2_sftp_lstat (PECL ssh2 >= 0.9.0) ssh2_sftp_lstat — シンボリックリンクの情報を取得する 説明 function ssh2_sftp_lstat ( resource $sftp , string $path ): array | false リンクを辿ら ない で リモートファイルシステムのシンボリックリンクの情報 ... を取得します。 この関数は ssh2.sftp:// ラッパーを使用した場合の lstat() 関数と同様です。 戻り値も同じです。 パラメータ sftp ssh2_sftp() でオープンした SSH2 SF ... 情報の配列を返します。 失敗した場合に false を返します。 戻り値の詳細については stat() のドキュメントを参照ください。 例 例1 SFTP 経由でのシンボリックリンクの情報の取得 <?php $connection = ssh2_connect ( 'shell.example.com' , 22 ); ssh2_auth_password ( ... $connection , 'username' , 'password' ); $sftp = ssh2_sftp ( $connection ); $statinfo = ssh2_sftp_lstat ( $sftp , '/path/to/symlink' ); $filesize = $statinfo [ 'size' ]; ...
https://man.mtool.work/php/8.3/function.ssh2-sftp-lstat.html
PREV 1 2 NEXT