Page 1 of 1

error: parts from imap_fetchstructure()

Posted: Sun Oct 27, 2002 9:17 pm
by HUWUWA
Hi guys,

I can't get the parts from the returned object:

$nntp=imap_open(...) // connection works
$structure=imap_fetchstructure($nntp,1); // works
$ibytes=$structure->bytes; // works so I know I have valid object
$parts=$structure->parts; // does not work

Here is the error: PHP Notice: Undefined property: parts

Why doesn't it work ? Is it because it's a newsgroup ? Thanks.

Posted: Mon Oct 28, 2002 1:54 am
by volka
have a look at what's exposed by this object

Code: Select all

echo '<pre>';
print_r(get_class_methods($structure));
print_r(get_object_vars($structure));
echo '</pre>';
http://www.php.net/manual/en/function.g ... ethods.php
http://www.php.net/manual/en/function.g ... t-vars.php