WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search


Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder



Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Microsoft DBX file reader DEMO /such as Outlook Express Mailbox database files/
Categories : Email, PHP Classes, PHP Update Picture
Zeos RJ
Date : Oct 17th 2002
Grade : 3 of 5 (graded 3 times)
Viewed : 12172
File : ms_dbx_reader.class.inc.zip
Images : No Images for this code example.
Search : More code by Zeos RJ
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

<?
/**************************************************************************
*******************
Name:                        ms_dbx_reader_demo.php
Author:                Antony Raijekov a.k.a Zeos ([email protected]) 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 [[email protected]]</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>



POP3 Class
Categories : PHP Classes, PHP, Email
cPanel Email Accounts Creator
Categories : PHP, PHP Classes, Email, Form Processing, Web Services
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
Three Cool Classes and One Trick
Categories : PHP, PHP Classes, Graphics, 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
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
EAvalidator - This class can be used to validate an e-mail address by checking its domain.
Categories : PHP, PHP Classes, Email, Regexps
Class for sending mail with MIME attachments in multipart format using external sendmail, mimencode and zip
Categories : Email, Network, PHP, PHP Classes
Solution to those 'tell-a-friend' type email issues
Categories : PHP, Email, Databases, MySQL
PostGreSQL and MySQL 2 in 1 db Manager
Categories : PHP, PHP Classes, Databases, PostgreSQL, MySQL
Simple class to build tables with style sheets
Categories : HTML and PHP, PHP Classes, PHP
Snoopy - the PHP net client v0.1
Categories : PHP, PHP Classes
Compare two texts and display a block of text with the differences between them.
Categories : PHP, PHP Classes, Filesystem, Strings, Arrays
PHP MultiList Mailing List Manager
Categories : Email, HTML and PHP, PHP