As my favorite Zend Framework guru Padraic Brady pointet out on his blog, most forms are just about an invitation for hackers and other subversive folks to (ab)use your forms, and PHPs “addslashes” or “striptags” just don´t get the job of protecting your site done. It is one thing to assume everybody is just nice, [...]
Posts Tagged ‘PHP’
No-MVC Zend Framework: Filter Zend_Form input with HtmlPurifier
Posted: 8th February 2011 by admin in Zend FrameworkTags: Filters, HTMLPurifier, PHP, XSS-prevention on forms, Zend Framework, Zend_Filter, Zend_Form
No-MVC Zend Framework: Zend_Forms, Decorator, Validator and Filters
Posted: 5th February 2011 by admin in Zend FrameworkTags: autoloader, bootstrap, Controller, Decorators, Filters, MVC, PHP, View, YAML, Zend Framework, Zend_Form
Managing Zend_Form in both MVC and no-MVC environments has a huge advantage, since Zend Framework comes with a load of decorators (HTML to display form fields), validators (functions to check user input) and filters (functions to filter user input). If you look for an easy way to handle all kinds of user input thru forms, [...]
Google Maps Geocoding with JSON and PHP
Posted: 29th January 2011 by admin in Google Maps API, Zend FrameworkTags: Ajax, encoding, Geocoding, Google API v3, Google Maps, JSON, PHP, Zend Framework
When using maps on a website, Google is clearly the service to go with. If you are using JavaScript only, parsing a JSON response from Google shouldn´t be difficult, but how to use the response in PHP? In this article, I´ll describe how to use Zend Framework components, but with a link to How-To´s with [...]
Converting a MySQL database to UTF-8
Posted: 20th January 2011 by admin in Zend FrameworkTags: charset, convert database, database, encoding, MySQL, PHP, utf-8, Zend Framework
I just spent about 2 days to convert my old MySQL database from latin1 / latin1_general_ci to UTF-8 character encoding. There are about a gazillion pitfalls, especially when you work on old PHP code mixed with ZF code, on a live site of a client. The first tip is… do NOT work on a live [...]
No-MVC Zend Framework: Bootstrapping ZF / Part III
Posted: 5th May 2010 by admin in Zend Framework, jQueryTags: Action, autoloader, bootstrap, configuration, Controller, Model, MVC, PHP, View, Zend Framework
For this article, you should be familiar with at least the basics of Zend Framework, especially naming conventions. If not, check out the ZF site for beginners tutorials and/or Quickstart. If you don’t want to use ZF at all, but still need the Star Rating with PHP and Ajax, you can skip ahead to the [...]
Zend Framework Without MVC Part I
Posted: 28th April 2010 by admin in Zend Framework, jQueryTags: Action, CakePHP, Controller, jQuery, Model, MVC, PHP, Symfony, View, Zend Framework
I’ve been looking at a few PHP frameworks to aid the redesign of my website surfspot.de. After toying around with Cake and Symfony for a while, I finally stumbled upon Zend Framework, or ZF for short. When I started out learning ZF, it seemed to me that this was the one framework able to handle [...]