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.
error: parts from imap_fetchstructure()
Moderator: General Moderators
have a look at what's exposed by this object
http://www.php.net/manual/en/function.g ... ethods.php
http://www.php.net/manual/en/function.g ... t-vars.php
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 ... t-vars.php