0
PHP를 사용 중이며 SFTP의 원격 서버에 연결하려고합니다. 치명적인 오류 : D : \ xampp \ htdocs에서 정의되지 않은 함수 ssh2_connect()를 호출하십시오. \ dive \ database.php on line 9PHP를 통해 SFTP 서버에 연결하는 방법
자세한 방법을 알려주시겠습니까? 나는 피곤하다.
<?php
$connection = ssh2_connect('ftp.server.com', 22);
if (ssh2_auth_password($connection, 'username', 'password'))
echo "Authentication success";
else
echo "Authentication failure";
?>
그러나 작동하지 않는다.
서버에 연결 한 후 일부 데이터를 테이블에 삽입하려면 차이가 있습니까? 어떤 기능을 사용해야합니까?
ssh2를 설치하고 구성 했습니까? http://us1.php.net/manual/en/ssh2.setup.php – Samsquanch