php-general | 2001072
Date: 07/19/01
- Next message: Marcus: "[PHP] file upload"
- Previous message: James Holloway: "[PHP] Re: Using Frames"
- In reply to: Ben Bleything: "RE: [PHP] REGEXP"
- Next in thread: Sheridan Saint-Michel: "Re: [PHP] REGEXP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Tried. It gives only MULTIPART/MIXED; since that is what is stored in the
$buffer. I need the $buffer to read everything from:
Content-Type: multipart/mixed;
boundary="------------B42DA66C4EC07C9B572A58FC"
even if there is a break or a new line.
Adrian
On Wed, 18 Jul 2001, Ben Bleything wrote:
> Why don't you explode(";",$header); ??
>
> Ben
>
> -----Original Message-----
> From: Adrian D'Costa [mailto:adrian <email protected>]
> Sent: Saturday, July 14, 2001 2:54 AM
> To: php general list
> Subject: [PHP] REGEXP
>
> Hi,
>
> I am trying to capture the Header from a mail for my webmail using php
> and
> pop3. The header is something like this:
> Content-Type: multipart/mixed;
> boundary="------------B42DA66C4EC07C9B572A58FC"
>
> When I use preg_split("/[\d;]*/", $buffer), I get
> Content-Type: multipart/mixed;
>
> What I want is to return the whole line split by the ";". I usually try
> to avoid regexp (too lazy) but now I want to use it. The final result I
> would need is: ------------B42DA66C4EC07C9B572A58FC so that I can search
> in the body of the message for the rest of the parts.
>
> Any pointers would be helpful.
>
> Adrian
>
>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Marcus: "[PHP] file upload"
- Previous message: James Holloway: "[PHP] Re: Using Frames"
- In reply to: Ben Bleything: "RE: [PHP] REGEXP"
- Next in thread: Sheridan Saint-Michel: "Re: [PHP] REGEXP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

