Skip to main content

PHP 10 miles

It's glad to know PHP is been alive for 10 years. PHP originally written by 27-year-old Rasmus Lerdorf and released in June 8, 1995 is now in PHP 5.0.4.

I think, I hadn't seen any computers when PHP 1.0 was released (in 1995). My memory says I picked PHP around late 2000 or early 2001.

One important thing I have noticed at this time is: PHP 1.0 wasn't a bunch of Perl scripts as many often quote; it was "set of small tight cgi binaries written in C"

Links

Comments

Popular posts from this blog

Humble Award - Dr. A.N. Sreevatsan

Dr. A.N. Sreevatsan , ENT specialist located in Adyar, Chennai is one of the gems available in medicines. No assistants in his consulting room and he'd take at least 15mins for every patients. So far I have referred many and all are happy with his approach. Every wannabe doctor should visit him personally to understand his approach. I wish him to be more famous than now. Update (2010-11-21) : Added link to Google Map Keywords : Sreevatsan, Srivatsan, ENT, Adyar, Chennai, Hospital, Doctor

Tamil Castes and Consolidation - Hacker Style Cheat Sheet

Tamil caste system and its hierarchies are complex and difficult to understand--due to different addressing systems. Similarly, the caste consolidation or grouping of similar or different castes under some title is extremely confusing. In many cases, the caste consolidation doesn't make any sense, but due to ulterior motives of politicians for their vote bank politics, these systems exist. So, to explain the system, I created a formula like cheat sheet: Vellalar = Pillai + Mudaliar + [Gounder] Pillai > Mudaliar ~ Gounder Thevar = Maravar + Kallar + [Agamudayar + [Senathipathi]] Senathipathi >>> Agamudiyar > Maravar ~ Kallar Agamudayar ~ Gounder Vanniyar = Padayachi + Gounder + [Naicker + [Reddy]] Naicker >>> Reddy > Padayachi ~ Gounder * Gounder is BC, Padayachi is MBC

Converting PSD with PHP/ImageMagick

After seeing feature rich options in Imagick PECL extension at Mikko Koppanen 's (the author) website and also impressed with ImageMagick 's features, I have decided to use it for the PSD to XHTML conversion website that I'm architecting and managing. Since, the team wants programming help for converting PSD images, I have tried it (documentation is sparse on PSD handling) Converting PSD to PNG/JPEG/etc Note that, flattenImages() is needed for layered/multi-page PSD file. <?php $im = new Imagick('test.psd'); $im->flattenImages(); $im->setImageFormat('png'); $im->writeImage('test.png'); ?> Extracting PSD layers One by one <?php $im = new Imagick('test.psd'); $im->setImageFormat('png'); for ($i = 0, $num_layers = $im->getNumberImages(); $i $im->setImageIndex($i); $im->writeImage('layer' . $i . '.png'); } ?> Note that, there is a better version below In a single call with writeIm...