Access the using php

I am reading this blog post and I trying to test the code using gmail but the code did not access the mail server
BTW I enabled the, and I use port 995 and set use SSL to true
the error message
Warning: imap_open() [function.imap-open]: Couldn’t open stream {}INBOX in C:\xampp\htdocs\project\MobilePhotoBlog\POP3.php on line 10