WordPress

How to add wordpress like add_filter hooks in your PHP framework

Posted on

I simply love wordpress mainly because of the architectural design it follows to deliver the good. WordPress provide a hook or filter functionality to almost everything that appears on your blog. If you are a wordpress plugin developer you surely must have used one of them, specially add_filter() hook. add_filter functionality provides plugin developer a way to apply custom hooks on various page sections. For instance add_filter(‘the_content’, ‘HelloWorld’) will force the content to be passed through the function HelloWorld($content) before being displayed to your blog users. In this blog post I will show you how can you achieve doing the […]

Web Development

Getting started with Openlaszlo – Framework for developing flash apps

Posted on

Openlaszlo is an open source framework which simplifies development of flash applications. Openlaszlo allows you to code your flash apps using xml style laszlo code, and thereafter you can compile your code to output a .swf file for production usage. I first came around openlaszlo while I was developing Alterplayer – open source flash mp3 player. In this post I will demonstrate: Getting started with Openlaszlo – Setting up your dev enviornment Hello World! in Openlaszlo Upcoming tutorials Setting up Openlaszlo development environment Download the latest openlaszlo release 4.4 from http://openlaszlo.org/download or alternatively download directly from http://download.openlaszlo.org/4.4.0/openlaszlo-4.4.0-windows-dev-install.exe Double click and […]

PHP

XML Parsing in PHP, XPATH way – The best I know so far

Posted on

If you are a PHP developer, you surely must have done XML parsing at some stage or the other. Over the years I myself have implemented XML Parsing in atleast 3-4 different ways. Finally I have stuck to this approach which I personally find far more better than the rest, Not only because it’s quite simple but also because it’s extendable. By extendable I mean, you don’t have to touch your code if the XML structure changes at a later stage or if you need to parse a new node at a later stage in the project. In this blog […]

PHP

Facebook type image rotation and more using PHP and Javascript

Posted on

If you are a facebook geek like me, you must have noticed till now the image rotate functionality in the photo albums. Facebook allows you to rotate images 90 degree clockwise and anti-clockwise after image upload. If you haven’t tried that till now, below is a screenshot for your convenience. Question: But the question is how does facebook team succeed doing this in one click. Today I tried looking around for a solution over internet and I came across the inbuilt imagerotate functionality in PHP. Problem: Unfortunately the problem is that even if you have GD Library extension enabled in […]