error: parts from imap_fetchstructure()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
HUWUWA
Forum Commoner
Posts: 35
Joined: Sat Aug 17, 2002 7:24 pm
Location: Long Island, NY

error: parts from imap_fetchstructure()

Post 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.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
Post Reply