Rev | Line | |
---|
[14366] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 |
|
---|
| 4 | $TEST_DIR = realpath(dirname( __FILE__));
|
---|
[14370] | 5 | require_once($TEST_DIR . "/../../require.php");
|
---|
[14371] | 6 | require_once($TEST_DIR . "/../../../data/include/ftp.php");
|
---|
[14366] | 7 |
|
---|
| 8 | // FTP²èÁüÊݸÁêÂХѥ¹
|
---|
| 9 | define("FTP_IMAGE_SAVE_DIR", "./html" . URL_DIR . "upload/save_image/");
|
---|
| 10 | // FTP²èÁü°ì»þÊݸÁêÂХѥ¹
|
---|
| 11 | define("FTP_IMAGE_TEMP_DIR", "./html" . URL_DIR . "upload/temp_image/");
|
---|
| 12 | define ("IMAGE_TEMP_DIR", HTML_PATH . "upload/temp_image/"); // ²èÁü°ì»þÊݸ
|
---|
| 13 | define ("IMAGE_SAVE_DIR", HTML_PATH . "upload/save_image/"); // ²èÁüÊݸÀè
|
---|
| 14 |
|
---|
| 15 |
|
---|
[14483] | 16 | ftpMoveTempFile(FTP_IMAGE_TEMP_DIR);
|
---|
[14366] | 17 |
|
---|
| 18 | //----------------------------------------------------------------------------
|
---|
| 19 |
|
---|
| 20 | // ¥Õ¥¡¥¤¥ë¤Î¹¹¿·¤ò¾¥µ¡¼¥Ð¤Ë¤âÈ¿±Ç¤¹¤ë¡£
|
---|
| 21 | function ftpMoveTempFile($ftp_image_save_dir) {
|
---|
| 22 | global $arrWEB_SERVERS;
|
---|
| 23 |
|
---|
| 24 | $arrFiles = array();
|
---|
[14481] | 25 | $arrFiles[] = '06081024_4668afcc10571.jpg';
|
---|
[14366] | 26 |
|
---|
| 27 | // Éé²Ùʬ»¶¤·¤Æ¤¤¤ëÁ´¤Æ¤Î¥µ¡¼¥Ð¤Ë¥Õ¥¡¥¤¥ë¤ò¥³¥Ô¡¼¤¹¤ë
|
---|
| 28 | foreach($arrFiles as $files) {
|
---|
| 29 | foreach($arrWEB_SERVERS as $array) {
|
---|
| 30 | $dst_path = $ftp_image_save_dir . $files;
|
---|
[14478] | 31 | $src_path = IMAGE_TEMP_DIR . $files;
|
---|
[14379] | 32 |
|
---|
[14476] | 33 | echo $dst_path;
|
---|
[14475] | 34 | sfFtpDelete($array['host'], $array['user'], $array['pass'], $dst_path);
|
---|
| 35 | // sfFtpCopy($array['host'], $array['user'], $array['pass'], $dst_path, $src_path);
|
---|
[14366] | 36 | }
|
---|
| 37 | }
|
---|
| 38 | }
|
---|
| 39 |
|
---|
| 40 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.