|
|
|
<?
/**************************************************************************
*******************
Name: ms_dbx_reader_demo.php
Author: Antony Raijekov a.k.a Zeos (dev@strategma.bg) Sofia/Bulgaria
Version: 1.0à
Description: Microsoft DBX file reader DEMO /such as Outlook Express Mailbox
database files/
Date: 9/27/2002 2:53 GMT +2
License: GPL
Note: Please if you use this class send me an e-mail, just for
information 10x
I have tested this class with 15 folders. ~ 10MB
(about 319 mails)
and the class has processed them for 0.6 sec! :)
***************************************************************************
******************/
// DEMO
IMPLEMENTATION
?>
<html>
<head>
<title>MS DBX file reader DEMO class by Zeos [dev@strategma.bg]</title>
<meta NAME="Author" CONTENT="Zeos">
<meta NAME="Keywords" CONTENT="MS Outlook DBX reader">
<meta NAME="Description" CONTENT="Microsoft DBX file reader (such as Outlook
Express Mailbox database files)">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- just for nice vie :) -->
<STYLE>
BODY, TD, TR, TH, P {
font-family: Arial;
font-size: 14px;
color: Black;
}
</STYLE>
</head>
<body>
<?if(($GLOBALS['HTTP_POST_VARS']['processit'] == 'process') AND (is_uploaded_file
($GLOBALS
['HTTP_POST_FILES']['dbxfile']['tmp_name'])))
{
print "Prepare file <B>{$GLOBALS['HTTP_POST_FILES']['dbxfile']['name']}
</B>...";
$fname = md5(time().microtime().$GLOBALS['HTTP_POST_FILES']['dbxfile']
['name']);
if(copy($GLOBALS['HTTP_POST_FILES']['dbxfile']['tmp_name'],"./$fname"))
print 'done. /generating temp name/<br>';
include("./ms_dbx_reader.class.inc.php"); //with out example in it!!!
//create object and pass the DBX file for binary reading and soring into
array of mails
$mailbox = new ms_dbx_reader("./$fname",true);
//get first mail from mailbox object
$mail = $mailbox -> mails[1];
//prepare mail info for friendly display
$mail_info = '';
foreach ($mail['info'] as $k => $v) $mail_info .= "$k = ".htmlspecialchars
($v)."\n<br>";
$mail_flags = $mailbox -> decode_flags($mail['info']['MsgFlags']);
//prepare raw mail for friendly display
$mail_size = strlen($mail['content']);
$mail_content = nl2br(htmlspecialchars($mail['content']));
//just dump them
?>
<br>
« <a href="demo.php"> BACK </a> <a href="demo.zip">
DOWNLOAD DEMO </a>
<hr>
<!-- disply message information stored in DBX file -->
<?=$mail_info?>
<!-- disply OE message flags -->
flags:<br>
<BLOCKQUOTE><?=$mail_flags?></BLOCKQUOTE>
raw mail size: <?=$mail_size?> bytes<br>
<hr>
<!-- display MIME message as-is : FIRST MAIL -->
<?=$mail_content?>
</body>
</html>
<?}else{?>
<H3>DBX file reader demo</H3>
Note: <BLOCKQUOTE>
<li> Your outlook files location is: <B>drive</B>:/Documents and
Settings/<B>Your
User Name</B>/Local Settings/Application Data/Identities/
{numbers...letter...like:2345234-
678F-890}/Microsoft/Outlook Express/</li>
<li> Use small files. <I>/click details in Open Dialog to see file
size/</I></li><br>
</BLOCKQUOTE>
<hr>
<FORM METHOD=POST ACTION="demo.php" ENCTYPE="multipart/form-data">
dbx file:<INPUT TYPE="file" NAME="dbxfile"> <INPUT TYPE="submit" name="processit"
value="process">
</FORM>
<?}?>
</body>
</html> |
|
| Class for sending mail with MIME attachments in multipart format using external sendmail, mimencode and zip Categories : Email, Network, PHP, PHP Classes | | | Validator - A PHP class that can can be used for validating Email IDs and Dates Categories : PHP, PHP Classes, Data Validation, Email, Date Time | | | Three Cool Classes and One Trick Categories : PHP, PHP Classes, Graphics, Email | | | PHP MIME Decoder. This class decodes Mime Encoded email message.
Attachments are stored in a director. Works with Multipart/alternative,
multipart/mixed etc.
see http://p3mail.com for example. Categories : PHP, PHP Classes, Email | | | cPanel Email Accounts Creator Categories : PHP, PHP Classes, Email, Form Processing, Web Services | | | Class that allows the PHP developer to establish connections with a POP3 mail server amd be able to list, retrieve and delete mail messages from a given mail box.
Categories : Network, Email, PHP, PHP Classes | | | A class for sending email; it has support for To:, Cc:, Bcc: and Reply-To:
headers. It requires that you have sendmail installed. Categories : Email, PHP Classes, PHP | | | POP3 Class Categories : PHP Classes, PHP, Email | | | very simple ftp class Categories : PHP, PHP Classes, FTP | | | PHP Paypal IPN Integration Class v1.0.0 Categories : PHP, PHP Classes, Payment Gateways | | | email new items in db Categories : PHP, Email, Databases, MySQL, Beginner Guides | | | A Timing Class Categories : PHP, PHP Classes, Date Time | | | The class to check load time of your script
VERY usefull for relatively slow applications, but not only.. Categories : PHP, PHP Classes, Debugging | | | Create HTML forms dynamicly using Javascript & PHP Categories : PHP, PHP Classes, Java Script | | | usercounter class Categories : PHP, PHP Classes, Databases, MySQL, Environment Variables | |
|
|
|