goon12
04-08-2002, 10:47 PM
Ok I have PHP 4 installed and everything has been working great so far. Now I am sending mail fine from the website, just trying to get mail is a problem. I haven't got very far because I am getting this error:
Fatal error: Call to undefined function: imap_open() in /netshare/website/check_mail.php on line 15
Why wouldnt that function be installed? Is there someway I can get it with out re-installing php4?? Here is the actual code for the page...
$username = "xxxxx";
$password = "xxxxx";
$mailserver = "{www.xxxxx.com/imap}";
$link = imap_open($mailserver, $username, $password);
$headers = imap_headers($link);
for ($x=1; x <= count($headers); $x++)
{
$idx = $x-1;
echo("Header: " . $headers[$idx] . "<br>");
}
Thanks,
goon12
[ 08 April 2002: Message edited by: goon12 ]
Fatal error: Call to undefined function: imap_open() in /netshare/website/check_mail.php on line 15
Why wouldnt that function be installed? Is there someway I can get it with out re-installing php4?? Here is the actual code for the page...
$username = "xxxxx";
$password = "xxxxx";
$mailserver = "{www.xxxxx.com/imap}";
$link = imap_open($mailserver, $username, $password);
$headers = imap_headers($link);
for ($x=1; x <= count($headers); $x++)
{
$idx = $x-1;
echo("Header: " . $headers[$idx] . "<br>");
}
Thanks,
goon12
[ 08 April 2002: Message edited by: goon12 ]