PHP ftp_rmdir() Function

ການກໍານົດ ແລະ ການນໍາໃຊ້

ftp_rmdir() Function ກຳນົດອອກສາຍ.

ຖ້າສຳເລັດຈະກັບຄືນ true, ບໍ່ສຳເລັດຈະກັບຄືນ false.

ວິທີການ

ftp_rmdir(ftp_connection,dir)
ຫົວຂໍ້ ກ່າວຫາ
ftp_connection ຕ້ອງການ. ກໍານົດ FTP Connection (Identifier of FTP Connection).
dir ຕ້ອງການ. ກໍານົດສາຍທີ່ຈະກຳນົດອອກ.

ກ່າວຫາ

ກຳນົດໂດຍຫົວຂໍ້ dir ສາຍທີ່ກໍານົດdir ຕ້ອງເປັນຫົວເມືອງສະຖານທີ່ຂອງສາຍກ່ອນຫຼືຫຼັງທີ່ວ່າສາຍກ່ອນຫຼືຫຼັງທີ່ວ່າສາຍ.

ຖ້າສຳເລັດຈະກັບຄືນ true, ບໍ່ສຳເລັດຈະກັບຄືນ false.

ຕົວຢ່າງ

<?php
$conn = ftp_connect("ftp.testftp.com") or die("Could not connect");
ftp_login($conn,"admin","ert456");
ftp_rmdir($conn,"testdir");
ftp_close($conn);
<?php