2012-03-29 109 views

回答

0

嘗試使用下面的代碼片段:

<?php 

// set up basic ssl connection 
$conn_id = ftp_ssl_connect($ftp_server); 

// login with username and password 
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); 

echo ftp_pwd($conn_id); ///

// close the ssl connection 
ftp_close($conn_id); 
?>