cii框架PHP,CII. POSIX Functions - PHP 5 中文文档

简介

This module contains an interface to those functions defined in

the IEEE 1003.1 (POSIX.1) standards document which are not

accessible through other means. POSIX.1 for example defined the

open(), read(), write() and close() functions, too, which

traditionally have been part of PHP 3 for a long time. Some more

system specific functions have not been available before, though,

and this module tries to remedy this by providing easy access to

these functions.

警告

Sensitive data can be retrieved with the POSIX functions, e.g.

posix_getpwnam()

and friends. None of the

POSIX function perform any kind of access

checking when safe mode

is enabled.

It’s therefore strongly

advised to

disable the POSIX extension at all (use

–disable-posix

in your configure line) if you’re

operating in such an environment.

注:

本扩展模块不可用于 Windows 平台。

安装

POSIX functions are enabled by default. You can disable POSIX-like

functions with –disable-posix

.

预定义常量

以下常量由本扩展模块定义,因此只有在本扩展模块被编译到

PHP 中,或者在运行时被动态加载后才有效。

POSIX_F_OK

(integer

)

Check whether the file exists.

POSIX_R_OK

(integer

)

Check whether the file exists and has read permissions.

POSIX_W_OK

(integer

)

Check whether the file exists and has write permissions.

POSIX_X_OK

(integer

)

Check whether the file exists and has execute permissions.

POSIX_S_IFBLK

(integer

)

Block special file

POSIX_S_IFCHR

(integer

)

Character special file

POSIX_S_IFIFO

(integer

)

FIFO (named pipe) special file

POSIX_S_IFREG

(integer

)

Normal file

POSIX_S_IFSOCK

(integer

)

Socket

注:

These constants are available since PHP 5.1.0. Please also note that some

of them may not be available in your system.

参见

The section about Process Control Functions

maybe of interest for you.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值