cvs: peardoc /en/package/networking/net-pop3 intro.xml

From: Date: Tue, 14 Mar 2006 21:49:29 +0000
Subject: cvs: peardoc /en/package/networking/net-pop3 intro.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-7670@lists.php.net to get a copy of this message
danielc Tue Mar 14 21:49:29 2006 UTC Modified files: /peardoc/en/package/networking/net-pop3 intro.xml Log: * Remove massive trailing whitespace. * Remove comments that state the obvious. * Fix nesting on comments. http://cvs.php.net/viewcvs.cgi/peardoc/en/package/networking/net-pop3/intro.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/en/package/networking/net-pop3/intro.xml diff -u peardoc/en/package/networking/net-pop3/intro.xml:1.2 peardoc/en/package/networking/net-pop3/intro.xml:1.3 --- peardoc/en/package/networking/net-pop3/intro.xml:1.2 Tue Mar 14 21:46:48 2006 +++ peardoc/en/package/networking/net-pop3/intro.xml Tue Mar 14 21:49:29 2006 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="package.networking.net-pop3.intro"> <refnamediv> <refname> @@ -11,16 +11,16 @@ <title>About <classname>Net_POP3</classname></title> <para> Provides a <acronym>POP3</acronym> class to access - <acronym>POP3</acronym> servers. Supports all + <acronym>POP3</acronym> servers. Supports all <acronym>POP3</acronym> commands including <acronym>UIDL</acronym> listings and <acronym>APOP</acronym> authentication. </para> <note> <para> Usage of this class compared to native <acronym>PHP</acronym> - extensions such as <acronym>IMAP</acronym> is slow and may be - feature deficient. If available you are STRONGLY recommended - to use the <acronym>PHP</acronym> extensions. + extensions such as <acronym>IMAP</acronym> is slow and may be + feature deficient. If available you are STRONGLY recommended + to use the <acronym>PHP</acronym> extensions. </para> </note> </refsect1> @@ -32,71 +32,66 @@ <programlisting role="php"> <![CDATA[ include 'Net/POP3.php'; - -/* -* Create the class -*/ + $pop3 =& new Net_POP3(); - + /* -* Connect to localhost on usual port -* If not given, defaults are localhost:110 -*/ + * Connect to localhost on usual port + * If not given, defaults are localhost:110 + */ $pop3->connect('localhost', 110); - + /* -* Login using username/password. APOP will -* be tried first if supported, then basic. -*/ + * Login using username/password. APOP will + * be tried first if supported, then basic. + */ $pop3->login('richard', 'Alien3'); - + /* -* Get the raw headers of message 1 -*/ + * Get the raw headers of message 1 + */ echo '<h2>getRawHeaders()</h2>'; echo '<pre>' . htmlspecialchars($pop3->getRawHeaders(1)) . '</pre>'; - + /* -* Get structured headers of message 1 -*/ + * Get structured headers of message 1 + */ echo '<h2>getParsedHeaders()</h2> <pre>'; print_r($pop3->getParsedHeaders(1)); echo '</pre>'; - + /* -* Get body of message 1 -*/ + * Get body of message 1 + */ echo '<h2>getBody()</h2>'; echo '<pre>' . htmlspecialchars($pop3->getBody(1)) . '</pre>'; + /* -* Get number of messages in maildrop -*/ + * Get number of messages in maildrop + */ echo '<h2>getNumMsg</h2>'; echo '<pre>' . $pop3->numMsg() . '</pre>'; - + /* -* Get entire message -*/ + * Get entire message + */ echo '<h2>getMsg()</h2>'; echo '<pre>' . htmlspecialchars($pop3->getMsg(1)) . '</pre>'; - + /* -* Get listing details of the maildrop -*/ + * Get listing details of the maildrop + */ echo '<h2>getListing()</h2>'; echo '<pre>'; print_r($pop3->getListing()); echo '</pre>'; - + /* -* Get size of maildrop -*/ + * Get size of maildrop + */ echo '<h2>getSize()</h2>'; echo '<pre>' . $pop3->getSize() . '</pre>'; - -/* -* Disconnect -*/ + $pop3->disconnect(); ]]> </programlisting> @@ -122,4 +117,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +-->

« previous php.pear.doc (#7670) next »