Posts Tagged ‘php’

20090710 “Blue Tuesday” sources released

“Blue Tuesday” is a direct evolution from the codecolors code base. Since it was all done in a hurry, there were lots of things which didn’t work as expected. I somehow got rid of some of them when I ported the demo to mac, then I got rid of some extra things these days when [...]

20090509 WordPress mistery solved!

Whenever I looked at source code from WordPress there was something that always irked me, and it was their recurrent use of this style of comparisons: if(2 == $x) I have been using the totally opposite style from the very first time I typed a comparison into a computer… and that was eons ago, so [...]

20090123 Open interval version number

Now this is something funny! I wanted to check the version of GD in my development machine. As I was right in the middle of php coding, I just did a quick print_r(gd_info()). And what did I get? Array (     [GD Version] => 2.0 or higher     [FreeType Support] => 1   [...]

20081202 The BBC accidentally reveals some source code

… in this recipe (scroll to the bottom), and here’s the question: Which programming language are they using in that piece of code? My vote goes for Perl, because… It’s a well-known, public fact that they use Perl. In fact I have even heard someone complained the version of Perl they use is so old [...]

20080925 mod_rewrite, mod_negotiation and empty $_GET’s

I had just added this simple rewrite rule into the .htaccess file RewriteRule ^section/(\d+)/$ /section.php?id=$1 [L] and went to section.php expecting to find the id value inside $_GET['id']. Big surprise when it was actually empty. I suspected this could be something to do with that Apache module which tries to guess which file were you [...]