PHP and Super Global Arrays

Posted by kris on February 03, 2008

The problem with the PHP super global arrays, such as $_GET and $_POST is they contain the raw query parameters that the browser passes. I’ve seen more than my fair share of abuse when fixing clients apps where they have not properly sanitized user input, which leads to SQL inject and XSS attacks. Continue reading…

Complications installing RubyOnRails 2.0.2

Posted by kris on December 18, 2007

While sitting in my living room watching a movie and working on my laptop, I realized I had forgotten to update my rails install to the latest 2.0.2. I did a `gem install rails` but it kept dieing with the wonderful OpenURI::HTTPError, regardless if I used the correct –source flag. Turns out if you do `gem update –system` first, then a `gem install rails` it will go smoothly.

Just get your projects done

Posted by kris on June 15, 2007

I was speaking with a friend about current projects on the table and how we both try to do everything ourselves, which include the site design, the development and marketing. This is a direct copy and paste of what he said, and it holds much value:

Continue reading…

PHP Factory & Singleton

Posted by kris on June 12, 2007

A friend sent me an ICQ today asking an easy way to load classes on the fly, but keep a registry of them to save resources if he calls said object more than once per page load. Here is the quick example I gave him:

Continue reading…

SEO vs Social Networking

Posted by kris on June 06, 2007

There has been a major market shift in internet marketing from Search Engine placement to Social Networking in the past couple years, and for many reasons. SEO isn’t reliable, plain and simple. You can be #1 one day, then #9,882,341 the next day. And companies spend thousands - often tens of thousands - a year to maintain these rankings. Rules for ranking are different between search engines. What works on Yahoo! won’t always work on Google or MSN.

Continue reading…


sid-1
IMG_2283
IMG_2280
IMG_2271
IMG_2247
IMG_2234
IMG_2140
IMG_1515
Close
E-mail It