PHP ftp_get_option() 函数

PHP 教程 · 2019-01-26 08:26:59

定义和用法

The ftp_get_option() 函数返回 FTP 连接的各种运行时选项。

语法


ftp_get_option(ftp_connection,option)


参数 描述
ftp_connection 必需。规定要使用的 FTP 连接。
option 必需。规定要返回的运行时选项。可能的值:
  • FTP_TIMEOUT_SEC - 返回网络操作的时间限制
  • FTP_AUTOSEEK - 如果设置该选项则返回 TRUE,否则返回 FALSE。

实例


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

上面的代码将输出:


90


点击查看所有 PHP 教程 文章: https://www.codercto.com/courses/l/5.html

查看所有标签

Programming in Haskell

Programming in Haskell

Graham Hutton / Cambridge University Press / 2007-1-18 / GBP 34.99

Haskell is one of the leading languages for teaching functional programming, enabling students to write simpler and cleaner code, and to learn how to structure and reason about programs. This introduc......一起来看看 《Programming in Haskell》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

在线进制转换器
在线进制转换器

各进制数互转换器

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具