Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PHPで、ftpの詳細を使用してWebサイトのルートディレクトリを取得することは可能ですか? 関数を使用ftp_nlist()すると、すべてのディレクトリが表示されます。ルート ディレクトリのみが必要です。
ftp_nlist()
いいえ。FTP サーバーはそれを知りません。Web ルート ディレクトリは Web サーバーだけが知っているものであり、FTP サーバーはそれと通信していません。