Location: PHPKode > projects > EXtensible Production Suite (XPS) > xpsdev/helpers/xpm3/DOCUMENTATION/pop3/plist.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
body, pre {
	font-family: Verdana;
	font-size: 10pt;
<body bgcolor="#f1f3f5" topmargin="10" leftmargin="14">

XPM3_POP3 :: <i>mixed</i> <b>plist</b> ( <i>resource</i> connection [, <i>integer</i> message ] )
Returns ARRAY if has been successfully recived, FALSE if not.

<i>integer</i> message default value are: 0 (get all messages)

<table border="0" bgcolor="white">
$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 '&lt;br&gt;All messages:';
	foreach ($sall as $number => $value) echo '&lt;br&gt;'.$number.' => '.$value.' Bytes.';
} else echo 'Error 2.';

<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


Return current item: EXtensible Production Suite (XPS)