Geekinator.com

Entries for the ‘Programming’ Category

A field not saving in CakePHP? Try clearing the cache :)

I thought I’d pass a little tip along for those of you who use the CakePHP framework, and maybe don’t know all the ins and outs yet (I am definitely one of those people, but I’m getting there). Every once in a while, I’ll get stuck on something that just won’t save to the database, [...]

Validate Multiple Models at same time when using CakePHP Wizard component

I really like the CakePHP Wizard component, written by Jared Hoyt and can be found at http://bakery.cakephp.org/articles/jaredhoyt/2010/09/10/wizard-component-1-2-tutorial#page-2. It’s great for creating multi page web forms in CakePHP, but I did run across a little problem (I’m sure it’s not a glitch with the component, but just a problem I’m having with my situation). The problem [...]

Populate State List on Country Select in CakePHP using jQuery

This has been shown on many sites, but it took the combination of several articles for me to figure this one out…maybe it’s just me, dunno. Also, it drove me nuts how the states list would disappear if the page was refreshed. I learned how to handle that as well, using jQuery cookies. By the [...]

Save output of print_r to variable instead of displaying it

I found this on someone else’s site (at http://www.electrictoolbox.com/return-information-from-php-print-r/) and thought I’d share it here as well. Something I’ve been wondering about for years and never really figured out how to do, was how to save the output of the print_r command to a variable, instead of actually displaying the contents to the screen. As [...]

Best Captcha I’ve Seen Yet!

I’m pretty sure I’m speaking for everyone when I say captcha is usually really annoying and frustrating on most sites. I consider myself to be pretty intelligent and savvy but I have a terrible time trying to figure out what they’re saying most of the time, unless it’s a simple math problem or there’s no [...]

Want to speed up your coding? Give a framework a try!

I’ve been working with PHP for about 10 years now, and the one problem I’ve always had was keeping my code organized and how to reuse my code efficiently. Well, a couple of years ago, I ran across some information about using frameworks to help speed up the coding process. I’m always a big fan [...]

Clicky Stats – The Best Web Stats ever!

My company owns a lot of domain names, and we have created various sites to host on those domains over the years. The one problem we’ve always had was trying to figure out the best web stats software to use on all of these sites. I’ve tried Google Analytics, which is ok but very limiting [...]

Speed up your PHP pages with Gzip!

I can’t believe I haven’t learned about this little trick until recently, but I’m sure glad I learned it. A lot of you may already know this, but there’s a simple little tag you can add to the top of your PHP pages that will speed up the transfer of your site significantly, and on [...]

Working on a new classified ad system

I’ve always subscribed to the “don’t reinvent the wheel” theory in everything I do, especially when trying to develop software. However, sometimes the wheel turns out to be a little lopsided. Over the past few years, I’ve used a couple of different classified ad systems to run my fairly successful RV Classified Ads website, that [...]

  
Web Analytics