Posts Tagged ‘php’

php.js - Javascript equivalents for PHP functions

Being a PHP developer, there must be certain times when you have to deal with Javascript. And if you’re rather confident with PHP when in the meantime suck at JS just like me, you must have more than once googled for the JS equivalent of that very useful/powerful base64_encode, or htmlentities, or array_merge, or strpos, [...]

More »

Kohana PHP framework

You know, I’m a die-hard fan of CodeIgniter. Among a lot of PHP frameworks out there, I prefer CI over Zend, Cake, Symfony etc. because of its speed, efficiency, and most importantly, simplicity. Just download it, unzip into a folder, and call it done. To me, a framework that costs me more than 10 minutes [...]

More »

IP address to geographic details

Today I received a small project to detect the country of web visitors. I’ve never done something like that before, so as always, I started googling around. And it turned out that it’s not that complex - there is a company called MaxMind that offers APIs to look up geographic details from an IP address. The [...]

More »

AJAX Random Posts - a new WP plugin (of mine)

Firstly, I’d like to show off a bit: hey I’ve caught up with the crowd, now both of my sites (this one and Thica.net) are upgraded to WordPress 2.7 - well, let’s hope that it is not prone to new vulnerabilities. The most significant change is the admin section - for the first time in [...]

More »

Convert a database from latin1 to utf8 charset (aka. Thica.net redesigned)

If it’s been a while since my last update on this blog, then I’d say sorry, I was working on a re-design of my favorite thica.net site. Ok, I’ll be honest here: I didn’t invent anything, instead I only took a copy of the great Notepad Chaos theme from Smashing Magazine and spent some time [...]

More »

CodeIgniter 1.7.0 released!

Yes, it’s been a while, and finally my favorite PHP framework has released its latest version 1.7.0 (Actually it was some 7 days ago but I missed it, what a shame). When the previous version (1.6.3) was just more or less about maintenance and bug fixes, 1.7.0 makes a step further to add many new [...]

More »

Six common mistakes in PHP

Okay, so PHP is cool, PHP rocks, PHP is easy to learn… However, just because it’s cool and easy doesn’t mean that you know everything about it. There are gurus (YES!!! LOTS OF THEM!!!) and then there are newbies (WHOHOO!!! Why am I so exciting?). As a guru, you know do-and-don’ts. But what if you’re [...]

More »