I am Hack Sparrow
Captain of the Internets.

Archive for May, 2010

Solution to PHP imap_open Invalid Certificate Failure (Self-signed certificate or untrusted authority)

When you try to do this: [php] $mbox = imap_open('{mail.domain.com}INBOX', 'user@domain.com', 'userpass'); [/php] You get this warning: Warning: imap_open() [function.imap-open]: Couldn't open stream {mail.domain.com:143}INBOX in E:\Projects\mailer\main.php on line 4 Notice: Unknown: Certificate failure for mail.domain.com: Self-signed certificate or untrusted ...

It is Time to Forget the “Remember Me” Checkbox

The Remember Me checkbox first appeared about 10-12 years ago on websites to ease users' trouble of logging in again and again. The feature uses the idea of persistent login which is implemented using cookies. Remember Me was a useful feature, but not anymore. I think it is time to ditch the Remember Me feature now (year 2010). I present my arguments below: ...

Why not to use PHP short opening tags

The short answer is "NO, you should not". The reason why you should not use PHP short tags is explained below. Your hosting server may not support short opening tags (<?). After spending hours on development on your development server (localhost?), when you upload the code online, you will find everything is broken. If you are shari ...