PHP ftp_raw() 함수
예시
FTP 서버에 연결하고 다음 명령을 실행합니다.
<?php
// connect to FTP server
$ftp_server = "ftp.example.com";
$ftp_conn = ftp_connect($ftp_server) or die("Could not connect to $ftp_server");
// the two lines below is the same as: ftp_login($ftp_conn,"john","secretpassword");
ftp_raw($ftp_conn, "USER john");
ftp_raw($ftp_conn, "PASS secretpassword");
?>
정의 및 사용
ftp_raw() 함수는 원시 명령을 FTP 서버에 보냅니다.
통사론
ftp_raw(ftp_conn, command);
매개변수 값
Parameter | Description |
---|---|
ftp_conn | Required. Specifies the FTP connection to use |
command | Required. Specifies the command to execute |
기술적 세부 사항
반환 값: | 문자열 배열로 서버의 응답 |
---|---|
PHP 버전: | 5+ |
❮ PHP FTP 참조