Or: is Google really bad? Is Facebook? The successor of the medival ages´ witch hunt is up, make sure you don´t miss it! Information technology´s giants, like Google or Facebook, are about to be burned at the stake for gathering information about your preferences, analyzing your habits on the Net, and selling those profiles for [...]
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
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, [...]
No-MVC Zend Framework: Zend_Decorator and Zend_Validator
Posted: 7th February 2011 by admin in Zend FrameworkTags: comment spam blocker, Decorators, spam filter, Validators, Zend Framework, Zend_Form
In the last artice, we have already set some basic decorators for Zend_Form. The next one is a decorator for the label, appending an asterisk (*) to labels of required fields, and display error messages below the label instead of the field. In your “Form” subfolder, create a folder “Decorator”, and in it, a file [...]
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 [...]