PHP Classes

Problem in using pop3.php

Recommend this page to a friend!

      POP3 e-mail client  >  All threads  >  Problem in using pop3.php  >  (Un) Subscribe thread alerts  
Subject:Problem in using pop3.php
Summary:Can pop3.php be used on php4.2.2 version(LINUX machine)????
Messages:2
Author:VmanAsh
Date:2006-08-09 15:27:07
Update:2006-08-09 19:01:31
 

  1. Problem in using pop3.php   Reply   Report abuse  
Picture of VmanAsh VmanAsh - 2006-08-09 15:27:07
Hi,
I have PHP4.2.2 working on Apache2.0.40 in Red Hat Linux 9.
Does the parse_message.php works with this configuration. I got this doubt because the function stream_wrapper_register('pop3','pop3_stream') is supported by only PHP 4 >= 4.3.2 and PHP 5. Due to this I am not able to use pop3.php class

How to make use of this classes in my current versions.

  2. Re: Problem in using pop3.php   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2006-08-09 19:01:31 - In reply to message 1 from VmanAsh
The POP3 class can be used in any PHP version since PHP 3.0 .

The stream wrapper support only works in PHP 4.3.x or later but you can create an object of the pop3_stream class and use the stream_open, stream_read and stream_close functions like you would use the fopen, fread and fclose functions to read data from files.

Once you read the data from the message you want you can pass it to the MIME parser class.