streamWrapper 类
(PHP 4 >= 4.3.2, PHP 5, PHP 7, PHP 8)
简介
允许实现自定义协议处理程序和流,以便与其它文件系统函数(比如 fopen()、
fread() 等)一起使用。
注意:
这不是真实的类,只是如何定义协议的原型类。
注意:
不使用此处描述的方法而使用其它方式可能会导致未定义行为。
一旦流函数尝试访问与其关联的协议,就会初始化此类的实例。
类摘要
class streamWrapper
{
public mkdir(
string $path
,
int $mode
,
int $options
):
bool
public rename(
string $path_from
,
string $path_to
):
bool
public rmdir(
string $path
,
int $options
):
bool
public stream_open(
string $path
,
string $mode
,
int $options
,
?string &$opened_path
):
bool
public stream_seek(
int $offset
,
int $whence
= SEEK_SET):
bool
public unlink(
string $path
):
bool
public url_stat(
string $path
,
int $flags
):
array|false
}
目录
There are no user contributed notes for this page.