FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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.
Related topics
http://tuvanonline.com/library/index.php
PHP-Nuke platium?
PHP Write to line
Anyone good with PHP-NUKE?
PHP safety?
req: PHP to list files in directory, and link to them
php admin and mysql admin console
Mysql And PHP HELP PLZ
IMAP
need help enabling GD php extension
IMAP support
Thunderbird and Gmail IMAP
phpList and hosting questions
How to Enable PHP IMAP eMail Functions
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

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