note 11300 added to imap_open
| From: | thomas at biz-e-solutions dot com | Date: | Wed, 14 Feb 2001 22:46:59 +0000 |
| Subject: | note 11300 added to imap_open | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11086@lists.php.net to get a copy of this message | ||
following is the code that Im trying to run:
<html>
<body>
<?php
$mbox = imap_open ("{mail.biz-e-solutions.com:110}", "usernamewashere",
"passwordwashere");
echo "<p><h1>Mailboxes</h1>\n";
$folders = imap_listmailbox ($mbox, "{mail.biz-e-solutions.com:110}", "*");
if ($folders == false) {
echo "Call failed<br>\n";
} else {
while (list ($key, $val) = each ($folders)) {
echo $val."<br>\n";
}
}
echo "<p><h1>Headers in INBOX</h1>\n";
$headers = imap_headers ($mbox);
if ($headers == false) {
echo "Call failed<br>\n";
} else {
while (list ($key,$val) = each ($headers)) {
echo $val."<br>\n";
}
}
imap_close($mbox);
?>
</body>
</html>
the output is:
Fatal error: Call to unsupported or undefined function imap_open() in /****absolute path
here****/testphp.php3 on line 4
any ideas? hello world works so I know php is working..
http://www.php.net/manual/en/function.imap-open.php