<HTML ><HEAD ><TITLE >List of Supported Protocols/Wrappers</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="PHP Manual" HREF="index.html"><LINK REL="UP" TITLE="Appendixes" HREF="appendixes.html"><LINK REL="PREVIOUS" TITLE="List of Resource Types" HREF="resource.html"><LINK REL="NEXT" TITLE="FTP and FTPS" HREF="wrappers.ftp.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="appendix" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="resource.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="wrappers.ftp.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="appendix" ><H1 ><A NAME="wrappers" >Appendix I. List of Supported Protocols/Wrappers</A ></H1 ><DIV CLASS="TOC" ><DL ><DT ><B >Table of Contents</B ></DT ><DT ><A HREF="wrappers.html#wrappers.http" >HTTP and HTTPS</A ></DT ><DT ><A HREF="wrappers.ftp.html" >FTP and FTPS</A ></DT ><DT ><A HREF="wrappers.php.html" >PHP input/output streams</A ></DT ><DT ><A HREF="wrappers.compression.html" >Compression Streams</A ></DT ></DL ></DIV ><P > The following is a list of the various URL style protocols that PHP has built-in for use with the filesystem functions such as <A HREF="function.fopen.html" ><B CLASS="function" >fopen()</B ></A > and <A HREF="function.copy.html" ><B CLASS="function" >copy()</B ></A >. In addition to these wrappers, as of PHP 4.3, you can write your own wrappers using PHP script and <A HREF="function.stream-register-wrapper.html" ><B CLASS="function" >stream_register_wrapper()</B ></A >. </P ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="wrappers.http" ></A >HTTP and HTTPS</H1 ><P >PHP 3, PHP 4. <TT CLASS="filename" >https://</TT > since PHP 4.3</P ><P ></P ><UL ><LI ><P ><TT CLASS="filename" >http://example.com</TT ></P ></LI ><LI ><P ><TT CLASS="filename" >http://user:password@example.com</TT ></P ></LI ><LI ><P ><TT CLASS="filename" >https://example.com</TT ></P ></LI ><LI ><P ><TT CLASS="filename" >https://user:password@example.com</TT ></P ></LI ></UL ><P >Allows read-only access to files/resources via HTTP 1.0, using the HTTP GET method. A <TT CLASS="literal" >Host:</TT > header is sent with the request to handle name-based virtual hosts. If you have configured a <A HREF="ref.filesystem.html#ini.user-agent" >user_agent</A > string using your ini file or the stream context, it will also be included in the request. </P ><P > Redirects have been supported since PHP 4.0.5; if you are using an earlier version you will need to include trailing slashes in your URLs. </P ><P > The stream allows access to the <SPAN CLASS="emphasis" ><I CLASS="emphasis" >body</I ></SPAN > of the resource; the headers are stored in the <TT CLASS="varname" >$http_response_header</TT > variable. Since PHP 4.3, the headers are available using <A HREF="function.stream-get-meta-data.html" ><B CLASS="function" >stream_get_meta_data()</B ></A >. </P ><P > HTTP connections are read-only; you cannot write data or copy files to an HTTP resource. </P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Note: </B >HTTPS is supported starting from PHP 4.3, if you have compiled in support for OpenSSL. </P ></BLOCKQUOTE ></DIV ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="resource.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="wrappers.ftp.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >List of Resource Types</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="appendixes.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >FTP and FTPS</TD ></TR ></TABLE ></DIV ></BODY ></HTML >