FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

PHP Imap

 


thnn
Hi,
The piece below is a snippet from one of my scripts, Its a PHP webmail script, but im looking to put the headers in a table, to make the script look nicer.

Does anyone know how I can break up the $headers array or else how it works.

A example of what shows up is this

U 2)24-Jan-2006 Internet Airlines Re Internet Airlines Registr (1905 chars)

The code:

$link=imap_open($MAILSERVER,$PHP_AUTH_USER,$PHP_AUTH_PW) or die(imap_last_error());
$headers=imap_headers($link);
for($x=1; $x < count($headers); $x++)
{
$idx=($x-1);
/echo "<a href=\"view.php?num=$x\">".$headers[$idx]."</a><br>";
}

Thanks for any help,
THNN
Stubru Freak
Code:
$headers[$idx] = "<tr><td>" . implode("</td><td>", $headers[$idx]) . "</td></tr>";


Is this what you mean?
thnn
No that is not what i want. Thanks for the help though.
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.