note 107130 deleted from function.imap-open by danbrown
| From: | danbrown@php.net | Date: | Mon, 09 Jan 2012 23:24:34 +0000 |
| Subject: | note 107130 deleted from function.imap-open by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-185509@lists.php.net to get a copy of this message | ||
Note Submitter: Shank
----
I'm new to PHP n Mac .I'm using NetBeans with MAMP.Everything is latest version .Enabled
SSL support for IMAP by replacing imap.so in extensions folder from http://www.vargatron.com/tag/php-mamp-os-x-gmail/
.
1. how to verify SSL support for IMAP has been enabled or not after replacing imap.so ?
2. I used the following code from an example given above .The screen is blank when I run it.Even
debugging doesn't help as it gets stuck on the if condition .Can't even see the value of
$mbox.
<?php
//goggle with pop3 or imap
//$authhost="{pop.gmail.com:995/pop3/ssl/novalidate-cert}";
$authhost="{imap.gmail.com:993/imap/ssl/novalidate-cert}";
$user="buksndufs@gmail.com";
$user="buksndufs@gmail.com";
$pass="password";
if ($mbox==imap_open( $authhost, $user, $pass ))
{
echo "<h1>Connected</h1>\n";
imap_close($mbox);
} else
{
echo "<h1>FAIL!</h1>\n";
}
?>