My Writings. My Thoughts.

JavaScript – The easiest way to clean-up your JavaScript code

// July 28th, 2010 // No Comments » // JavaScript

Clean-up and beautify your JavaScript code with this online tool

JavaScript – Adding an pure JavaScript event calendar to your site.

// July 28th, 2010 // No Comments » // JavaScript

This tutorial explains how you can add a pure JavaScript event based calendar on your site. You can customize it to your needs too.

PHP tip: Best way to get file extension

// July 25th, 2010 // 2 Comments » // PHP, PHP Tips

I tried 100 ways to get the file extension from a complete file path including directories and file name with extension. This one works perfectly. This uses php function pathinfo to get the directory name, filename and its extension for you which is very handy. <?php $fileinfo = pathinfo(“/path/to/your/file.php”); echo $fileinfo['dirname']; // Get directory echo $fileinfo['basename']; // Get file [...]

Feeling like a Nomad

// July 5th, 2010 // No Comments » // Uncategorized

Even though I am sitting in a better place Where I don’t have to think of problems I had in homeland, I feel homesick. I don’t even know why Still I wont deny The charm of motherland but, my accent cannot return to its song.

Testing zend optimizer encoded PHP applications

// July 4th, 2010 // No Comments » // PHP, PHP Tips

I am working on an expressionengine application these days. As I am using the beta version of expression engine until they release the final version, so the source files are encoded with the zend optimizer. Zend optimizer has a limitation that it can’t work with version 5.3 of PHP so far. I had the latest [...]

Leaving for Muscat, Oman

// July 1st, 2010 // 2 Comments » // Uncategorized

I am here waiting to board the flight for Muscat, Oman. PIA was no good the last time and hope OmanAir is good. Anyhow, its a good clear day. At least seems like from the air conditioned waiting lounge of the Islamabad airport.

View Archives

My videos. Featured videos.