回答編集履歴
1
関数名じゃ無かった…-でなく_でしょ
answer
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
```PHP
|
7
7
|
move_uploaded_file($_FILES['afile']['tmp_name'], $afile_filepath);
|
8
8
|
```
|
9
|
-
bfileですが、[
|
9
|
+
bfileですが、[ssh2_scp_send()](http://php.net/manual/ja/function.ssh2-scp-send.php)を使うのがいいのでは無いでしょうか?(SSH2モジュールを入れておく必要があります、実際は下記にエラー処理とかも追加してください)
|
10
10
|
```PHP
|
11
11
|
$session = ssh2_connect($other_server_hostname);
|
12
12
|
ssh2_auth_password($session, $other_server_username, $other_server_password);
|