title: Help with gmail message reading with php
body: <p>I need to read emails from gmail but i cant connect to gmail pop3 server.
  Can anyone help me here ?</p>
  
  <p>Here the code:</p>
  
  <pre><code>$pop3 = new POP3;
  $pop3-&gt;server = 'pop.gmail.com';
  $pop3-&gt;user = 'username';
  $pop3-&gt;passwd = 'password';
  $pop3-&gt;debug = true;
  $pop3-&gt;pop3_connect()
  </code></pre>
  
  <p>The result:</p>
  
  <pre><code>Warning: fsockopen() [function.fsockopen]: unable to connect to pop.gmail.com:110 (Connection timed out) in /public_html/cron/pop3.php on line 64
  </code></pre>
  
  <p>Thanks</p>