title: Mac OS X Mavericks: PHP error "imap_open() [function.imap-open]: Couldn't open stream"
body: <p>I have an issue with <code>imap_open</code> function. It seems that my connection doesn't work on Mac OS X and I don't know why. If I try it on Windows (I am using WAMP), it works as expected without any issues. If I try <strong>the exact same</strong> code on Mac OS X Mavericks, it seems that I have the following error:</p>
  
  <pre><code>Warning: imap_open() [function.imap-open]: Couldn't open 
  stream {XXX.co.uk:993/imap/ssl}INBOX in XXX.php on line XXX
  </code></pre>
  
  <p>The code is a simple connection with imap_open, you can see my code below:</p>
  
  <pre><code>$host = 'XXX.co.uk:993/imap/ssl';
  $username = 'XXX';
  $password = 'XXX';
  
  $mailbox = '{'.$host.'}INBOX';
  imap_open($mailbox , $username , $password);
  </code></pre>
  
  <p>If that matters, for Mac OS X Mavericks I am using MAMP. </p>
  
  <p>I don't have a clue of why this is happening. Maybe a port blocking from Mac OS X? If this is the problem, can you please help me to solve this issue? How can I for example enable the 993 port for PHP and Mac OS X?</p>