Vancouver Web Consultants

July 13, 2009

The 3D future of CSS?

Filed under: CSS, Web Browsers — Tags: , , , , , , — Nelson @ 12:59 pm

Snow Stack demo of WebKit CSS 3D visual effects

Apple is well known for their innovative thinking in just about everything they do. Now they’re making a bid to add rich 3D effects to CSS (Cascading Style Sheets), potentially rivaling (or replacing?) Flash as the de-facto animation tool for websites. (more…)

July 10, 2009

Validating a URI with PHP

Filed under: PHP — Tags: , — Nelson @ 4:34 pm

If you find yourself needing to validate a URI, not just checking that it’s well formed with a regular expression like this:

/^(http|https|ftp):\/\/([A-Z0-9][A-Z0-9_-]*(?:\.[A-Z0-9][A-Z0-9_-]*)+):?(\d+)?\/?/i

…but actually verifying that the URI points to a functioning web page, the following code will do the trick. (more…)

Powered by WordPress