<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>XPM3_POP3::plist()</title>
<style>
body, pre {
font-family: Verdana;
font-size: 10pt;
}
</style>
</head>
<body bgcolor="#f1f3f5" topmargin="10" leftmargin="14">
<pre>
XPM3_POP3 :: <i>mixed</i> <b>plist</b> ( <i>resource</i> connection [, <i>integer</i> message ] )
<hr>
Returns ARRAY if has been successfully recived, FALSE if not.
<i>integer</i> message default value are: 0 (get all messages)
Example:
<table border="0" bgcolor="white">
<tr><td>
<pre><code>
$open = XPM3_POP3::Connect('pop.hostname.tld', 'username', 'password');
// get size of message number 2
$size = XPM3_POP3::pList($open, 2);
// print result
echo $size ? $size[2].' Bytes.' : 'Error 1.';
// also, you can get size of each message
if ($sall = XPM3_POP3::pList($open)) {
echo '<br>All messages:';
foreach ($sall as $number => $value) echo '<br>'.$number.' => '.$value.' Bytes.';
} else echo 'Error 2.';
</code></pre>
</td></tr>
</table>
<hr color="white">
[ <a style="color: blue; text-decoration: none" href="mailto:hide@address.com?subject=Comment XPM3_POP3 pList">Comments</a> ]
Wednesday, December 27, 2006
</pre>
</body>
</html>