Can you “compile” PHP code and upload a binary-ish file, which will just be run by the byte code interpreter?

After this question was asked, Facebook launched HipHop for PHP which is probably the best-tested PHP compiler to date (seeing as it ran one of the world’s 10 biggest websites). However, Facebook discontinued it in favour of HHVM, which is a virtual machine, not a compiler. Beyond that, googling PHP compiler turns up a number of 3rd party solutions. … Read more

Regular Expression – Validate Gmail addresses

You did not tell which regex implementation you use. [a-z0-9] first character (\.?[a-z0-9]){5,} at least five following alphanumeric characters, maybe preceded by a dot (see @Daniel’s comment, copied from @Christopher’s answer) g(oogle)?mail gmail or googlemail (see @alroc’s answer) Probably you will want to use case-insensitive pattern matching, too. (/…/i in JavaScript.)