Monthly Archives: April 2010

Burn Feeds in Zend Framework

Continuing with the Zend Framework’s series, here’s another one – how to burn your data into RSS feed within ZF. Fairly simple. Collect all the data into an array and than … $feed = Zend_Feed::importArray($feedArray, ‘rss’); $feed->send();

Posted in micro tutorial, PHP, zend framework | Tagged , , , | 1 Comment

Debugging in Zend Framework

Perhaps “debugging” is a bit too strong. However when you’re dumping an array in PHP, you’d probably prefer the print_r or var_dump. echo ‘<pre>’; print_r($array); echo ‘</pre>’; But did you know that in Zend Framework there’s a built in Zend_Debug? … Continue reading

Posted in micro tutorial, PHP, zend framework | Tagged , , , , , , , | Leave a comment

Why mb_strlen() Doesn’t Return the Correct Lenght

It’s strange to notice that mb_strlen() doesn’t return always what you expect. The problem of course is in you, not in mb_strlen(). That’s because you probably doesn’t specify encoding. echo mb_strlen($str, ‘UTF-8′); Now that’s another case!

Posted in micro tutorial, PHP | Tagged , , , , , | Leave a comment

Zend_Date::setOptions and format_type in Zend Framework 1.10.3

I recently upgraded from the old Zend Framework 1.9.5 to the latest – 1.10.3. Everything just looked to be working quite fine, except the date formatting. Although I had the same date formatting and options in the old version it … Continue reading

Posted in micro tutorial, PHP, zend framework | Tagged , , , , , , | Leave a comment

New Name for AJAX

Should it be called AJAJ since there’s more JSON instead of XML?!

Posted in web development | Tagged , | 2 Comments