Send Files via FTP Using PHP
2011. 12. 21. 19:09ㆍ개발/php
$connection = ftp_connect($server); $login = ftp_login($connection, $ftp_user_name, $ftp_user_pass); if (!$connection || !$login) { die('Connection attempt failed!'); } $upload = ftp_put($connection, $dest, $source, $mode); if (!$upload) { echo 'FTP upload failed!'; } ftp_close($connection);
'개발 > php' 카테고리의 다른 글
php.ini 보안 (0) | 2012.02.05 |
---|---|
Read PDF and Word DOC Files Using PHP (0) | 2011.12.21 |
Force A Secure Page Using PHP (0) | 2011.12.21 |
Force Secure (SSL) Pages With .htaccess (0) | 2011.12.21 |
PHP Force Download (0) | 2011.12.21 |