はじめまして。 FreeBSD(4.9)上で、Apache(1.3)+mod_php(4.4.0)を使用しています。 下記のようなコードで、自身(localhost)のFTPにアクセスさせようとしています。 <?php $ftp_host = "myself"; $ftp_user = "user"; $ftp_pass = "pass"; // print ("this is test for phpwebftp."); $ftp_handle = ftp_connect ($ftp_host) or exit ("Failed"); if (ftp_login ($ftp_handle, $ftp_user, $ftp_pass)) { // ftp_chdir ($ftp_handle, "/usr/xxxx"); print (ftp_pwd ($ftp_handle)); $fi