title: fetching gmail inbox with imap
body: <p>i got a code from here to download gmail inbox:
  <a href="http://davidwalsh.name/gmail-php-imap" rel="nofollow">http://davidwalsh.name/gmail-php-imap</a></p>
  
  <pre><code>use these 2 hostnames 
  $hostname = '{imap.gmail.com:993/imap/ssl}INBOX';
  {imap.gmail.com:993/imap/ssl/novalidate-cert/norsh}Inbox
  </code></pre>
  
  <p>but getting this error.</p>
  
  <pre><code> Warning: imap_open() [function.imap-open]: Couldn't open stream {imap.gmail.com:993/imap/ssl/novalidate-cert/norsh}Inbox in /home/medicalh/public_html/testmail.php on line 9
  Cannot connect to Gmail: Can't connect to gmail-imap.l.google.com,993: Connection timed out
  </code></pre>
  
  <p>i have searched on stackoverflow but did't got solution</p>
  
  <p>thanks</p>