mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
add examples for SSL IMAP and POP3 servers, and correct server specs to be
of form host:port/protocol (some of them were host/protocol:port). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@48556 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
3c83cdea54
commit
c7c95d0ebb
1 changed files with 19 additions and 5 deletions
|
@ -1913,9 +1913,9 @@ for($i=0;$i<count($elements);$i++) {
|
|||
A mailbox name consists of a server part and a mailbox path on
|
||||
this server. The special name INBOX stands for the current users
|
||||
personal mailbox. The server part, which is enclosed in '{' and
|
||||
'}', consists of the servers name or ip address, a protocol
|
||||
secification (beginning with '/') and an optional port specifier
|
||||
beginnung with ':'. The server part is mandatory in all mailbox
|
||||
'}', consists of the servers name or ip address, an optional port
|
||||
(prefixed by ':'), and an optional protocol specification (prefixed
|
||||
by '/'). The server part is mandatory in all mailbox
|
||||
parameters. Mailbox names that contain international characters
|
||||
besides those in the printable ASCII space have to be encoded
|
||||
with <function>imap_utf7_encode</function>.
|
||||
|
@ -1958,13 +1958,27 @@ $mbox = imap_open ("{localhost:143}INBOX", "user_id", "password");
|
|||
To connect to a POP3 server on port 110 on the local server, use:
|
||||
<informalexample>
|
||||
<programlisting role="php">
|
||||
$mbox = imap_open ("{localhost/pop3:110}INBOX", "user_id", "password");
|
||||
$mbox = imap_open ("{localhost:110/pop3}INBOX", "user_id", "password");
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
To connect to an SSL IMAP or POP3 server, add /ssl after the protocol
|
||||
specification:
|
||||
<informalexample>
|
||||
<programlisting role="php">
|
||||
$mbox = imap_open ("{localhost:993/imap/ssl}INBOX", "user_id", "password");
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
To connect to an SSL IMAP or POP3 server with a self-signed
|
||||
certificate, add /ssl/novalidate-cert after the protocol specification:
|
||||
<informalexample>
|
||||
<programlisting role="php">
|
||||
$mbox = imap_open ("{localhost:995/pop3/ssl/novalidate-cert}", "user_id", "password");
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
To connect to an NNTP server on port 119 on the local server, use:
|
||||
<informalexample>
|
||||
<programlisting role="php">
|
||||
$nntp = imap_open ("{localhost/nntp:119}comp.test", "", "");
|
||||
$nntp = imap_open ("{localhost:119/nntp}comp.test", "", "");
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
To connect to a remote server replace "localhost" with the name
|
||||
|
|
Loading…
Reference in a new issue