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

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

SSL context options

SSL context option listing Context options for ssl:// and tls:// transports. Changelog: 5.6.0 Added peer_fingerprint and verify_peer_name. verify_peer default changed to TRUE. 5.4.13 Added disable_compression. Requires OpenSSL >= 1.0.0. 5.3.2 Added SNI_enabled and SNI_server_name. 5.0.0 Added capture_peer_cert, capture_peer_chain

FTP context options

FTP context option listing Context options for ftp:// and ftps:// transports. Changelog: 5.1.0 Added proxy. 5.0.0 Added overwrite and resume_pos. Notes: Underlying socket stream context options Additional context options may be supported by the underlying transport For ftp:// streams, refer to context options for the tcp:// transport. For ft

Phar context options

Phar context option listing Context options for phar:// wrapper. See also: phar:// - Phar stream wrapper -

CURL context options

CURL context option listing CURL context options are available when the CURL extension was compiled using the --with-curlwrappers configure option. Examples: Fetch a page and send POST data <?php $postdata = http_build_query(     array(         'var1' => 'some content',         'var2' => 'doh'     ) ); $opts = array('http' =>     array(         'method'  => 'PO

HTTP context options

HTTP context option listing Context options for http:// and https:// transports. Changelog: 5.3.4 Added follow_location. 5.3.0 The protocol_version supports chunked transfer decoding when set to 1.1. 5.2.10 Added ignore_errors. 5.2.10 The header can now be an numerically indexed array. 5.2.1 Added timeout.

Socket context options

Socket context option listing Socket context options are available for all wrappers that work over sockets, like tcp, http and ftp. Changelog: 5.3.3 Added backlog. 5.1.0 Added bindto. Examples: Basic bindto usage example <?php // connect to the internet using the '192.168.0.100' IP $opts = array(     'socket' =&

$_SESSION

(PHP 4 >= 4.1.0, PHP 5, PHP 7) Session variables An associative array containing session variables available to the current script. See the Session functions documentation for more information on how this is used. $HTTP_SESSION_VARS contains the same initial information, but is not a superglobal. (Note that $HTTP_SESSION_VARS and $_SESSION are different variables and that PHP handles them as such)

$HTTP_RAW_POST_DATA

(PHP 4, PHP 5) Raw POST data $HTTP_RAW_POST_DATA contains the raw POST data. See always_populate_raw_post_data. In general, php://input should be used instead of $HTTP_RAW_POST_DATA. This feature was DEPRECATED in PHP 5.6.0, and REMOVED as of PHP 7.0.0.