What’s the difference between Authentication and Authorization? These two terms are quite often misunderstood. Let’s put it this way, suppose you work in a 100-story office building, each floor has different offices of other companies. You are working on the 49th Floor, cubicle number 20. Authentication is when the security personnel at the building’s front [...]
CakePHP cookies not being written when localhost is used as domain
I just burned 4 hours of my time trying to figure out why CakePHP wouldn’t write cookies. Apparently there is a known problem with using $this->Cookie->domain = ‘localhost’ , thanks to Flxr from the IRC for pointing that out. After making a virtual domain for the site, it worked wonderfuly!
3 Easy to Use PHP RSS Parser Classes
Suppose you want to get news stories from CNN.com or other news site and put the live feed on your own website, what do you do? Fortunately RSS (Really Simple Syndication) makes it easy to share content across the ether, and these 3 easy to use PHP RSS Parser Classes makes XML and RSS parsing [...]
Pulling in WordPress Content in your CakePHP Website
Integrating your WordPress posts into your CakePHP website is easy. WebDevKungFu has an excellent post, just follow the step by step instruction.
Highlighting the Current Navigation Tab with Javascript and PHP
One of our projects required highlighting of the current navigation tab. So naturally, I googled and here’s what I found: http://www.alistapart.com/articles/keepingcurrent http://www.hicksdesign.co.uk/journal/highlighting-current-page-with-css http://www.websiteoptimization.com/speed/tweak/current/ However, none of them was the solution to what we exactly needed because of our file structure. We had a unique sidebar navigation include (nav.inc.php) for every subdirectory. The ALA solution was [...]
Working with IMAP on PHP
I re-opened a dusty old script in my archives, one which uses IMAP. Decided that I would use PHP5 from now on, since PHP4 has been discontinued. Installing PHP5 was pretty easy. Just unzip it into a folder, tweak PHP.INI settings, especially display_errors, enable extensions for imap, and don’t forget to set the extension_dir. Include [...]