PHP ftp_systype() 函数

PHP 教程 · 2019-01-26 14:11:42

定义和用法

ftp_systype() 函数返回 FTP 服务器的系统类型标识符。

如果成功,该函数返回系统类型。如果失败,则返回 FALSE。

语法


ftp_systype(ftp_connection)


参数 描述
ftp_connection 必需。规定要使用的 FTP 连接。

实例


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

上面的代码将输出:


UNIX


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

查看所有标签

Responsive Web Design

Responsive Web Design

Ethan Marcotte / Happy Cog / 2011-6 / USD 18.00

From mobile browsers to netbooks and tablets, users are visiting your sites from an increasing array of devices and browsers. Are your designs ready? Learn how to think beyond the desktop and craft be......一起来看看 《Responsive Web Design》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

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

HEX CMYK 互转工具