WP-Mix

A fresh mix of code snippets and tutorials

Category Archive: PHP

Posts about PHP

Page 7 of 7

Spammer Trap

Another bad-bot trap to keep spammers and other scumbags away from your website.

Stop form spam with a hidden field

Sick of teh spamz? Here’s an easy way to block a lot of automated spam from your contact form.

Display PHP + server info

Quick snippet today meant as a copy/paste template for displaying your PHP and server information in the blink of an eye.

Cross domain posting with Ajax

Technically cross-domain posting is not allowed, but here is a workaround that may prove useful for your brainstorming sessions. Note that this technique is aimed at advanced developers.

Disable PHP version info & error messages

Whenever possible, prevent access to sensitive information about your server. Here is how to prevent PHP from displaying errors and their sensitive infos.