php

Get Different Sizes of SlideShare thumbnails

Recently we were working on a feature we can show a slideshare gallery, we faced a little problem while we were trying to get thumbnails for slides. We used Slideshare oEmbed API to get slide info and thumbnails. The API response was giving a small thumbnail which is 170x128 px…

Delete Memcached keys efficiently in PHP

When you build a Web Application it's required to implement Cache in any moment. Memcached is one of the best caching system to reduce database load. Recently, while working on an applocation, we faced some difficulties to remove caches on demand. Problem Normally on PHP to delete a cache we…

Fixing an illegal offset type error in THESIS theme

Recently we have updated PHP on our server from 5.2 to 5.4. Everything went perfectly. But then we found out that our blog which runs on WordPress completely broke down. After fixing most of the bugs, we got this peculiar bug: Warning: Illegal string offset ‘type’ in wp-content…

Implement Trak.io in php using cURL

Trak.io is a customer analytics for SaaS Companies. Few weeks ago I have to implement that in our SaaS project. While implementing it's API, we found that they did not provide any official php library. I can use javascript, but it won't fulfill our requirement. Then I make a…