Second Sighting Logo

Microsoft adCenter Negative Keywords

Posted in Microsoft adCenter by Tom on the July 16th, 2007

Negative keywords can now be added at the campaign level in adCenter. There is a 1022 character limit - enough to squeeze in around 200 keywords, so it should be plenty for most people. There is nothing in the documentation about phrase matched negative keywords so I would presume only broad match is supported currently.

Simple Email Validation

Posted in PHP by Tom on the July 3rd, 2007

Starting with PHP 5.2.0 there is a really easy way to validate email addresses - namely the filter_input function. The example below takes a submitted POST variable called ‘email’, validates it against the email format, and returns FALSE if the filter fails or the value of the variable on success.

  1. $email = filter_input(INPUT_POST, 'email', FILTER_VALIDATE_EMAIL);

Thats all there is to it.