rar://

RAR The wrapper takes the url encoded path to the RAR archive (relative or absolute), an optional asterik (*), an optional number sign (#) and an optional url encoded entry name, as stored in the archive. Specifying an entry name requires the number sign; a leading forward slash in the entry name is optional. This wrapper can open both files and directories. When opening directories, the asterisk sign forces the directory entries names to be returned unencoded.

ssh2://

Secure Shell 2 ssh2.shell:// ssh2.exec:// ssh2.tunnel:// ssh2.sftp:// ssh2.scp:// PHP 4.3.0 and up (PECL) Note: This wrapper is not enabled by default In order to use the ssh2.*:// wrappers you must install the » SSH2 extension available from » PECL. In addition to accepting traditional URI login details, the ssh2 wrappers will also reuse open connections by passing the connection resource in the host portion of the URL.

phar://

PHP Archive The phar:// stream wrapper is available since PHP 5.3.0. See Phar stream wrapper for detailed description. See also: Phar context options -

glob://

Find pathnames matching pattern The glob: stream wrapper is available since PHP 5.3.0. Examples: Basic usage <?php // Loop over all *.php files in ext/spl/examples/ directory // and print the filename and its size $it = new DirectoryIterator("glob://ext/spl/examples/*.php"); foreach($it as $f) {     printf("%s: %.1FK\n", $f->getFilename(), $f->getSize()/1024); } ?>

data://

Data (RFC 2397) The data: (» RFC 2397) stream wrapper is available since PHP 5.2.0. Examples: Print data:// contents <?php // prints "I love PHP" echo file_get_contents('data://text/plain;base64,SSBsb3ZlIFBIUAo='); ?> Fetch the media type <?php $fp   = fopen('data://text/plain;base64,', 'r'); $meta = stream_get_meta_data($fp); // prints "te

zlib://

Compression Streams zlib: PHP 4.0.4 - PHP 4.2.3 (systems with fopencookie only) compress.zlib:// and compress.bzip2:// PHP 4.3.0 and up zlib: works like gzopen(), except that the stream can be used with fread() and the other filesystem functions. This is deprecated as of PHP 4.3.0 due to ambiguities with filenames containing ':' characters; use compress.zlib:// instead. compress.zlib:// and compress.bzip2:// are equivalent to gzopen() and bzopen() respectively,

php://

Accessing various I/O streams PHP provides a number of miscellaneous I/O streams that allow access to PHP's own input and output streams, the standard input, output and error file descriptors, in-memory and disk-backed temporary file streams, and filters that can manipulate other file resources as they are read from and written to. php://stdin, php://stdout and php://stderr php://stdin, php://stdout and php://stderr allow direct access to the corresponding inp

ftp://

Accessing FTP(s) URLs Allows read access to existing files and creation of new files via FTP. If the server does not support passive mode ftp, the connection will fail. You can open files for either reading or writing, but not both simultaneously. If the remote file already exists on the ftp server and you attempt to open it for writing but have not specified the context option overwrite, the connection will fail. If you need to overwrite existing files over ft

http://

Accessing HTTP(s) URLs Allows read-only access to files/resources via HTTP 1.0, using the HTTP GET method. A Host: header is sent with the request to handle name-based virtual hosts. If you have configured a user_agent string using your php.ini file or the stream context, it will also be included in the request. The stream allows access to the body of the resource; the headers are stored in the $http_response_header variable. If it's important to know the URL

file://

Accessing local filesystem Filesystem is the default wrapper used with PHP and represents the local filesystem. When a relative path is specified (a path which does not begin with /, \, \\, or a Windows drive letter) the path provided will be applied against the current working directory. In many cases this is the directory in which the script resides unless it has been changed. Using the CLI sapi, this defaults to the directory from which the script was called.