Thoughts of just about anything
PHP
Wirting your own ORM data layer in PHP
Jun 30th
When you begin to move from static pages to more dynamic data driven web pages you realize that storing and retrieving data is one of the most essential parts of web development. If you are anything like me you started working with databases using inline SQL statements and eventually found out that is is not very scalable. In this post I’d like to show how my data layer has evolved over time.
More >
10 Most Common PHP Coding Mistakes
Jun 16th
When starting to do serious PHP programming most developer run into the same situations. I wanted to take a moment to point some of the most common ones I’ve seen to help those starting out avoid such problems.
More >
Write OpenSSL files in PHP
Mar 16th
A while back I wrote a post on how to Read OpenSSL files in PHP, and a reader asked how would you write a file.
Well I thought that’s easy you just do the same thing but use the encrypt function. Well I should have known better. Two hours later and a whole lot of research yield that PHP doesn’t do PKCS#5 padding when using PHP’s mcrypt API. But luckly duerra had a simple solution. So after padding my input everything worked fine. More >
New Symfony Color Scheme for Vim
Apr 4th
Recently I’ve been doing a lot of PHP programing using symfony application framework. I think it is one of the best PHP frameworks out there. Not to mention that the community is always willing to help, and they have really good documentation. Something lacking in other frameworks I’ve used in the past. More >
Tango color scheme
Nov 24th
When I saw uwstopia’s post on Tango terminal I fell in love with the color scheme right away. Basically it follows the Tango Desktop Project color scheme with a few exceptions. Personally I spend so much time on the terminal that this scheme make it easier on the eyes. But there was one problem I don’t use gnome-terminal, I instead use mrxvt it’s very light weight, support 256 colors and will compile on MAC OS X and Linux. More >
Symfony Open-Source PHP Web Framework
Jan 10th
For quite a while now I’ve been doing PHP development and have gone through my own self evolution. I started like any newbie coding PHP inline with my HTML code. This was fine when I did simple sites, one or two pages but as I stared moving along to bigger projects this just didn’t cut it. More >
Read OpenSSL files in PHP
Apr 18th
I finally got PHP to open encrypted files created with OpenSSL. I use openssl in the command line to encrypt files with AES cipher 128 block size and 256 key length with salt. More >