Currency exchange in your application
That’s easy, you need 2 things: Fresh currencies exchange rates Some way to excange amount from one currency to another. This how I did it: get values from European Central Bank (ECB) for step #1 and...
View ArticleCannot upload a big file?
If you want to work with big files uploads (photos, videos, CSV data dumps) you might need to prepare your PHP server for this — increase the values of these variables in your php.ini:...
View ArticleZend View Helpers inheritance
It’s handy to use View Helpers in Zend FW driven project. For example, you want to make an in-place tracker (e.g. Google Analytics) — you create a helper class My_View_Helper_Tracker inherited from...
View ArticleSphinx on Windows and error 1067
I attempted to setup Sphinx on Windows, but was not trivial — problem was that I couldn’t run the SearchD as a Windows service since I got 1067 error (“Process Terminated unexpectedly“). It’s not...
View ArticleDelete Your Code #2: less OOP visibility keywords
Hey! I gonna describe tricks that I use to have less code. Why it is important to have less code, you ask? Less code means less bugs, less support, less developer brains waste. Today’s trick is...
View ArticleDelete Your Code #7: Right encoding
You might be surprised, but a right choise of the project text encoding can affect the project file size and amount of bugs. To avoid bugs of wrong presentation of text on your page, make sure that all...
View ArticleUsing non-alphanumeric characters in Sitemap URLs
This article in Google Help explains how to deal with special characters in Sitemaps that you can submit to Webmaster tools in order to increase the number of indexed pages of your website. The main...
View ArticleProblems with download in InternetExplorer
Don’t forget to include this simple header, otherwise Internet Explorer users over SSL will get a weird error message that the download cannot be done: header('Pragma: public'); It’s better to make a...
View ArticleSpecifying CSS class of a Zend_Navigation li element
Zend Navigation is a really nice tool to handle menus. You just specify an array of your menu items: $pages = array( array( 'label' => 'Privacy Statement', 'controller' => 'terms', 'action' =>...
View ArticleMy article about the queues
I wrote an article how queues can speed up your application and make your users happier. Queues are everywhere. When you delete a photo on your iPhone, it goes to the Bin and will be deleted from there...
View Article