We all know Facebook SDK. It should be marked as beta. Or even alpha. Some things works one day, and few days after they are not. Such situation […]
Quick tip – working with dates with ADODb and MSSQL 2000
Yes, it can be really painfull – MSSQL (at least instance I’m using) is saving date in format “d/m/Y H:i:s” but in every part of code I had […]
Quick tip – how to get specific posts/page by their ID?
At first look it was simple, just: $args = array(“post__in” => array(1,2,3)); $posts = new WP_Query(); $posts -> query($args); while ($posts -> have_posts()){ $posts -> the_post(); echo the_title().'<br/>’; […]
Zend_File_Transfer – uploading same file multiple times
I faced with such problem: had one upload field for one file in my Zend_Form, and few checkboxes for choosing file destination. After form is submitted, this one […]
How to fix broken serialized string in php?
From time to time previously serialized array will get broken. The most common problem occurs when string length is invalid so instead of a:2:{i:758;s:4:”test”;i:759;s:4:”test”;} you have a:2:{i:758;s:4:”test”;i:759;s:9:”test”;} becouse […]