<?
/**************************************************************************
*******************
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>
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 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 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 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 Class for sending mail with MIME attachments in multipart format using external sendmail, mimencode and zip Categories : Email , Network , PHP , PHP Classes EAvalidator - This class can be used to validate an e-mail address by checking its domain. Categories : PHP , PHP Classes , Email , Regexps POP3 Class Categories : PHP Classes , PHP , Email cPanel Email Accounts Creator Categories : PHP , PHP Classes , Email , Form Processing , Web Services Class to Create protected URLs Categories : PHP , PHP Classes , URLs Form is a utility class for generating html forms. It provides form initialization and regex based data validation (both server and client side) with a convenient interface. This version obsoletes version 1.0a Categories : HTML , PHP , PHP Classes , Regexps shopping cart class with add/edit/delete product functionality. Categories : PHP , PHP Classes , Ecommerce HTML_Graphs provides a simple PHP interface for
creating pure HTML charts. Categories : Graphics , PHP , PHP Classes , Charts and Graphs very simple ftp class Categories : PHP , PHP Classes , FTP DBXML- A Class to backup databases in XML Format using web interface Categories : PHP , PHP Classes , Databases , MySQL , XML