Daily Archives: August 8, 2009

Tip: Append to an array with + operator

You can use the addition and increment operators in PHP to concatenate arrays. For example, $c = $a + $b; If you’ve used array_merge() to do this in the past, it’s important to note the difference between merging arrays and concatenating them. When you merge they keys are used to determine how the resulting array

Tip: Don’t close your PHP tags

Adding a closing ?> to your <?php tags is actually optional, and you should avoid using it for scripts that will only be included.

Should HTML 5 have better security?

With all the talk of HTML 5 around the corner, I’ve been thinking of how passwords are sent over HTTP. Let’s not forget that SSL is pretty much busted now that anyone can sign a certificate. If you wanted to avoid your passwords being stolen while someone monitors your connection, a site has to have