Category Archives: Coding, Programming and Development

How to validate a URL with a Scheme and Hostname in Zend Framework

I recently ran across a situation where URLs where being stored in the database with the scheme and the hostname (e.g., http://www.rondobley.com/2011). The validator that was being used was allowing URLs like http://rondobley to pass validation. The validation code was: Zend_Uri::check() will parse the URI and return a scheme handler class based on the scheme [...]
Posted in Coding, Programming and Development | Leave a comment