Re: Catchable fatal error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Richard Kurth wrote:
I figured it out

.. and the magic answer is ?

Useful even if just for the archives so others can search for the error/problem and find a solution quickly.

I am getting *Catchable fatal error*: Object of class stdClass could not be converted to string in *C:\web\easycontactpro\openchecker.php* on line *49 line 49 is * $mail_head = imap_headerinfo($conn, $i); what could be casing this. The next line works fine if I delete line 49



$conn = @imap_open("{" . $open['host'] . ":" . $open['port'] . "/" . $open['mailtype'] . "/notls}" . $open['mbeailbox'], $open['username'], $open['password']);
print_r(imap_errors());

    $headers = @imap_headers($conn);
    if ($headers) {
         $email_count = sizeof($headers);
         for($i = 1; $i <= $email_count; $i++) {
              # Check the body against all saved patterns
              $mail_head = imap_headerinfo($conn, $i);  <--- Line 49
              $mail_body = imap_fetchbody($conn, $i, 1);
               echo "mail head: $mail_head<br>\n";
               echo "mail body: $mail_body<br>\n";




--
Postgresql & php tutorials
http://www.designmagick.com/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux