php8.5
Home/ Manual/ language/ Supported Protocols and Wrappers

Supported Protocols and Wrappers

PHP comes with many built-in wrappers for various URL-style protocols for use with the filesystem functions such as fopen, copy, file_exists and filesize. In addition to these wrappers, it is possible to register custom wrappers using the stream_wrapper_register function.

PHP comes with many built-in wrappers for various URL-style protocols for use with the filesystem functions such as fopen(), copy(), file_exists() and filesize(). In addition to these wrappers, it is possible to register custom wrappers using the stream_wrapper_register() function.

Note

The URL syntax used to describe a wrapper only supports the scheme://... syntax. The scheme:/ and scheme: syntaxes are not supported.

File Http Ftp Php Compression Data Glob Phar Ssh2 Rar Audio Expect

In this section

Source: language/wrappers.xml · from the official PHP manual (php/doc-en)