peeda Posted August 8, 2004 Report Posted August 8, 2004 Uzrakstīju kodu: <?php $user=$_GET["user"]; $pass=$_GET["pass"]; $mbox = imap_open("{127.0.0.1:143}", "$user", "$pass"); $sort=imap_sort($mbox, SORTDATE, 1); $headers = imap_headers($mbox); while (list($key, $val) = each ($headers)) { echo "<a href=\"zina.php?user=$user&pass=$pass&msg=$key\">" . $val . "<br/>"; } ?> Tikai nemāku uztaisīt lai sistēma nevis parāda uzreiz visus meilus, bet gan, piemēram, pirmos desmit.
Aleksejs Posted August 8, 2004 Report Posted August 8, 2004 Kaut kas līdzīgs: <?php $user=$_GET["user"]; $pass=$_GET["pass"]; $mbox = imap_open("{127.0.0.1:143}", "$user", "$pass"); $sort=imap_sort($mbox, SORTDATE, 1); $headers = imap_headers($mbox); $skaits = 0; while ((list($key, $val) = each ($headers)) && $skaits < 10) { echo "<a href=\"zina.php?user=$user&pass=$pass&msg=$key\">" . $val . "<br/>"; $skaits++; } ?>
Recommended Posts