略微加速
PHP官方手册 - 互联网笔记
首页
IT
PHP手册
Elasticsearch
SVN手册
互联网
博客
登陆
注册
PHP - Manual: Streams
2024-11-14
简介 »
« SplSubject::notify
PHP 手册
函数参考
其它基本扩展
Streams
简介
安装/配置
需求
安装
运行时配置
Stream Classes
预定义常量
Stream Filters
Stream Contexts
Stream Errors
范例
Example class registered as stream wrapper
php_user_filter
— The php_user_filter class
php_user_filter::filter
— Called when applying the filter
php_user_filter::onClose
— Called when closing the filter
php_user_filter::onCreate
— Called when creating the filter
streamWrapper
— The streamWrapper class
streamWrapper::__construct
— Constructs a new stream wrapper
streamWrapper::__destruct
— Destructs an existing stream wrapper
streamWrapper::dir_closedir
— Close directory handle
streamWrapper::dir_opendir
— Open directory handle
streamWrapper::dir_readdir
— Read entry from directory handle
streamWrapper::dir_rewinddir
— Rewind directory handle
streamWrapper::mkdir
— Create a directory
streamWrapper::rename
— Renames a file or directory
streamWrapper::rmdir
— Removes a directory
streamWrapper::stream_cast
— Retrieve the underlaying resource
streamWrapper::stream_close
— Close a resource
streamWrapper::stream_eof
— Tests for end-of-file on a file pointer
streamWrapper::stream_flush
— Flushes the output
streamWrapper::stream_lock
— Advisory file locking
streamWrapper::stream_metadata
— Change stream metadata
streamWrapper::stream_open
— Opens file or URL
streamWrapper::stream_read
— Read from stream
streamWrapper::stream_seek
— Seeks to specific location in a stream
streamWrapper::stream_set_option
— Change stream options
streamWrapper::stream_stat
— Retrieve information about a file resource
streamWrapper::stream_tell
— Retrieve the current position of a stream
streamWrapper::stream_truncate
— Truncate stream
streamWrapper::stream_write
— Write to stream
streamWrapper::unlink
— Delete a file
streamWrapper::url_stat
— Retrieve information about a file
Stream 函数
stream_bucket_append
— Append bucket to brigade
stream_bucket_make_writeable
— Returns a bucket object from the brigade to operate on
stream_bucket_new
— Create a new bucket for use on the current stream
stream_bucket_prepend
— Prepend bucket to brigade
stream_context_create
— 创建资源流上下文
stream_context_get_default
— Retrieve the default stream context
stream_context_get_options
— 获取资源流/数据包/上下文的参数
stream_context_get_params
— Retrieves parameters from a context
stream_context_set_default
— Set the default stream context
stream_context_set_option
— 对资源流、数据包或者上下文设置参数
stream_context_set_params
— Set parameters for a stream/wrapper/context
stream_copy_to_stream
— Copies data from one stream to another
stream_filter_append
— Attach a filter to a stream
stream_filter_prepend
— Attach a filter to a stream
stream_filter_register
— Register a user defined stream filter
stream_filter_remove
— 从资源流里移除某个过滤器
stream_get_contents
— 读取资源流到一个字符串
stream_get_filters
— 获取已注册的数据流过滤器列表
stream_get_line
— 从资源流里读取一行直到给定的定界符
stream_get_meta_data
— 从封装协议文件指针中取得报头/元数据
stream_get_transports
— 获取已注册的套接字传输协议列表
stream_get_wrappers
— 获取已注册的流类型
stream_is_local
— Checks if a stream is a local stream
stream_isatty
— Check if a stream is a TTY
stream_notification_callback
— A callback function for the notification context parameter
stream_register_wrapper
— 别名 stream_wrapper_register
stream_resolve_include_path
— Resolve filename against the include path
stream_select
— Runs the equivalent of the select() system call on the given arrays of streams with a timeout specified by seconds and microseconds
stream_set_blocking
— 为资源流设置阻塞或者阻塞模式
stream_set_chunk_size
— 设置资源流区块大小
stream_set_read_buffer
— Set read file buffering on the given stream
stream_set_timeout
— Set timeout period on a stream
stream_set_write_buffer
— Sets write file buffering on the given stream
stream_socket_accept
— 接受由 stream_socket_server 创建的套接字连接
stream_socket_client
— Open Internet or Unix domain socket connection
stream_socket_enable_crypto
— Turns encryption on/off on an already connected socket
stream_socket_get_name
— 获取本地或者远程的套接字名称
stream_socket_pair
— 创建一对完全一样的网络套接字连接流
stream_socket_recvfrom
— Receives data from a socket, connected or not
stream_socket_sendto
— Sends a message to a socket, whether it is connected or not
stream_socket_server
— Create an Internet or Unix domain server socket
stream_socket_shutdown
— Shutdown a full-duplex connection
stream_supports_lock
— Tells whether the stream supports locking
stream_wrapper_register
— 注册一个用 PHP 类实现的 URL 封装协议
stream_wrapper_restore
— Restores a previously unregistered built-in wrapper
stream_wrapper_unregister
— Unregister a URL wrapper
add a note
User Contributed Notes
There are no user contributed notes for this page.
官方地址:
https://www.php.net/manual/en/book.stream.php
有任何技术问题请点击这里
网站运营推广招聘
IT
PHP
编程语言
Linux
开发编程
科技
Elasticsearch
HTML/CSS/XML
网络
JAVA
NoSQL
数据库
面试
C/C++
Golang
Git
算法
操作系统
正则表达式
Redis
互联网
MySql
JavaScript
运维
软件
国际
架构设计
Mac OS
TCP/IP
Excel
Vim
Windows
Socket
Oracle
VR
MongoDB
Python
运营
MemCache
商业
硬件
电子
娱乐
设计
nginx
摄影
游戏
WordPress
HTTP
团建
数码电器
广告
--
php7 安装fileinfo扩展
preg_split — 通过一个正则表达式分隔字符串
php位值,解决 PHP 中 usort 在值相同时改变原始位置的问题
[PHP] inet_pton/inet_ntop IP地址转换函数
array_multisort() 多字段排序
PHPMailer设置utf8 PHPMailer字符集CharSet
ADORecordSet对象
adodb手册
PHP 8.1
[鸟哥]PHP_INT_MIN 和 -9223372036854775808
opcache预加载
Composer的Packagist资源
mysql面试题
[鸟哥]PHP FFI详解 - 一种全新的PHP扩展方式
PHP7添加redis扩展
PHP mkdir()写出来的权限与mode值不符合
Packagist / Composer 中国全量镜像
常用的php ADODB使用方法集锦
PHP获取指定函数定义在哪个文件中及行号
PHPstorm 里面Terminal 不能使用 esc键吗退出编辑模式吗
联系我们
半月雨文化
可降解耗材网
蓝云环保
78免费小説
上海网站seo优化
工程造价
币安app官网下载
seo查询
北京半月雨文化科技有限公司
.版权所有
京ICP备12026184号-3