ฟังก์ชันftp_login()
ความหมายของฟังก์ชันและการใช้งาน
การเข้าสู่ระบบ FTP Server ด้วยฟังก์ชัน ftp_login()
รูปแบบการเขียน (Syntax)
ftp_login(ftp_connection,username,password)
- ftp_connection คือ Resource ที่ได้จากฟังก์ชัน ftp_connect()
- username คือ ชื่อผู้ใช้งาน
- password คือ รหัสผ่าน
ตัวอย่าง
<?php
$conn = ftp_connect("ftp.exampleftp.com") or die("Could not connect");
ftp_login($conn,"testuser","testpassword");
ftp_close($conn);
?>