Safari has a tendency to hang when uploading files, and it turns out there’s an easy fix. (more…)
January 10, 2010
July 10, 2009
Validating a URI with PHP
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…)