PHP ftp_login() 函数
PHP ftp_login() 函数
完整的 PHP FTP 参考手册定义和用法
ftp_login() 函数登录 FTP 服务器。
如果成功,该函数返回 TRUE。如果失败,则返回 FALSE 和一个警告。
语法
ftp_login(ftp_connection,username,password)
参数 | 描述 |
---|---|
ftp_connection | 必需。规定要登录的 FTP 连接。 |
username | 必需。规定用于登录的用户名。 |
password | 必需。规定用于登录的密码。 |
实例
<?php
$conn = ftp_connect("ftp.testftp.com") or die("Could not connect");
ftp_login($conn,"admin","ert456");
ftp_close($conn);
?>
$conn = ftp_connect("ftp.testftp.com") or die("Could not connect");
ftp_login($conn,"admin","ert456");
ftp_close($conn);
?>
完整的 PHP FTP 参考手册
相关文章
- PHP $_GET 变量
- PHP date() 函数
- PHP Secure E-mails
- PHP array_chunk() 函数
- PHP array_flip() 函数
- PHP array_intersect_uassoc() 函数
- PHP array_intersect_ukey() 函数
- PHP array_merge() 函数
- PHP array_udiff_assoc() 函数
- PHP array_walk_recursive() 函数
- PHP asort() 函数
- PHP end() 函数
- PHP in_array() 函数
- PHP krsort() 函数
- PHP ksort() 函数
- PHP 5 Array 函数
- PHP 5 Calendar 函数
- PHP 5 Directory 函数
- PHP Libxml 函数
- PHP PDO