<?php

/* pop3.stream.php example #3

   Same as example #2, but using secure POP3 and Gmail. */

require("pop3.stream.php");

$dir="pop3s://username:password@pop.gmail.com:995/";

if (
$dh opendir($dir)) {
    echo 
"ID\t\tDate/Time\t\t\tSize (Kb)\n";
    while ((
$file readdir($dh)) !== false) {
        echo 
"$file\t\t";
        echo 
date("Y-m-j H:i:s",fileatime($dir.$file));
        echo 
"\t\t";
        echo 
number_format(filesize($dir.$file));
        echo 
"\n";
    }
    
closedir($dh);
}

?>