Tag Archives: php

Lightty Cake: CakePHP + Lighttpd Rewrite Rules

This little snippet will also allow you to capture your query string variables should the need arise. url.rewrite-once = ( “^/(css|files|img|js)/(.*)” => “/$1/$2″, “^/([^?]*)(?:\?(.+))?$” => “/index.php?url=$1&$2″ ) Posted via email from shakeit

Scrobble This: last.fm recent tracks AJAX style

So, I’ve been reading up a bit on prototype.js and its Ajax helpers. It’s an amazing tool and helped me write the bit of info at the top of the page. It’s pretty basic, but here’s the code that does most of the work: function lastfm() { new Ajax.Request(‘/as/recenttracks.xml’, { method: ‘get’, onLoading: function() {

LiMP: Lighttpd, MySQL & PHP on OS X

In following with the LAMP, MAMP, and WAMP themes, I’ve come up with my own acronym: LiMP. Lighttpd, MySQL, PHP. Of course, this doesn’t really follow the conventions of the other acronyms (my OS isn’t represented). Mainly because adding an ‘M’ just doesn’t sound (or look) right. It’s a great setup and I recently reconfigured

How-To: Lighttpd, ExecWrap, PHP, WordPress & Gallery2 On A Gentoo VPS

Part of my decision to change hosting providers was to expand my knowledge of technologies. I know how to write PHP, SQL and a whole host of other languages. What I was less familiar with was the servers that run them and other parts of a hosting system (mail, dns et al). Switching to a

Google Friendly URLs with PHP and Apache

Dynamic websites are essential for content heavy sites and chances are, you’re not going to create one static page for every single page/article/product item you have stored in a database. This means you’re going to need to pass parameters to your script to pull the right content from your database. Up until recently, most people