Location: PHPKode > projects > EXtensible Production Suite (XPS) > xpsdev/helpers/xpm3/DOCUMENTATION/pop3/pstat.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>pstat</b> ( <i>resource</i> connection )
Returns ARRAY if has been successfully recived, FALSE if not.

Get number of messages and total size in bytes.

<table border="0" bgcolor="white">
$open = XPM3_POP3::Connect('pop.hostname.tld', 'username', 'password');

// send STAT command
$stat = XPM3_POP3::pStat($open);

// print result
if ($stat) echo 'Messages: '.$stat[0].', in total '.$stat[1].' Bytes';
else echo 'Error.';

<hr color="white">

[ <a style="color: blue; text-decoration: none" href="mailto:hide@address.com?subject=Comment XPM3_POP3 pStat">Comments</a> ]

Last update: Wednesday, December 27, 2006


Return current item: EXtensible Production Suite (XPS)