PHP and Super Global Arrays
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
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
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:
PHP Factory & Singleton
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:
SEO vs Social Networking
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.







