For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > April 2006 > Re: [PEAR] mimedecode issue - no body









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] mimedecode issue - no body
Justin Patrin

2006-04-25, 7:04 pm

On 4/23/06, dtra FYF <dtra@faceyoursfears.com> wrote:
> hi all
>
> ok really annoying issue here
>
> i had this script working where it would take an attached image and proce=

ss
> it (after being piped to by sendmail)
> using pear mail, mail_mimedecode
>

[snip]
> $mailObj =3D $message->decode($params);
>
> $from =3D $mailObj->headers['from'];
>
> $params['include_bodies'] =3D true;
> $params['decode_bodies'] =3D true;
> $params['decode_headers'] =3D true;

[snip]

*ahem*. You're setting $params *after* you use it. Try turning your
error_reporting to E_ALL & ~E_STRICT so that you see use of
non-initialized vars.

--
Justin Patrin
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com