How do I upload folders via FTP PHP
I'm writing a开发者_如何学JAVA script that can FTP files and folders using PHP functionality.
I'm able to upload files via ftp but not folders, is is possible to upload folders via PHP Ftp
My file code looks similar to below
$upload = ftp_put($connection, '123test.co.za/images/1.jpg','1.jpg', FTP_ASCII);
This manual page, has code showing how to do it using ftp_mkdir.
精彩评论