Drupal: WSOD

I've been trolling the boards a lot this week, looking for help on various road blocks. One issue I've seen a TON of is people running up against the the brick wall of the dreaded WSOD (White Screen of Death). This is when something breaks your Drupal site and the only feedback you get on the error is a blank white screen full of absolutely nothing. It can be pretty frustrating, but you need to know that there is a simple fix.

Drupal: GeSHi Code Filtering

Recently, while searching through the web for a code snippet, I can across a site where the code was displayed just as it would look in an IDE. The comments, functions, variables, operators, etc, were all highlighted in different colors. This made the code really pop out, so that you could more easily follow the variables through a function, or ignore the comments. I thought that I had to get me some of that.

PHP: Random MP3 Collector

I have a pretty nifty little SanDisk MP3 player I like to use in my car. It'll play almost anything and will hold a fairly large cache of songs so that I can put it on random and pleasantly surprise myself with little nuggets of aural goodness. Unfortunately, I have to manual select files from my relatively large collection to add to the MP3 player which, in addition to being a bit of work, removes a large chunk of the serendipity from the experience. So, naturally, I wrote something to fix that.


PHP: Recursing Relationships

In a well designed database, everything is related to everything else. Departments roll up to Companies. Work Stations spawn Service Requests. It's all relative. One of the major tasks in traversing any such a database is finding out exactly what those relationships are. Who entered that ticket? How many parts does the widget have? I've written a few simple functions to help work out the genealogy of it all, for a LAMP (PHP) environment.


PHP: SQL Encapsulation

I love LAMP. For the uninitiated, that's an acronym for a technology platform consisting of “Linux” for the OS, “Apache” for the web server, “mySQL” for the database, and “PHP” for development language. “PERL” and “Python” can be substituted for PHP, although I wouldn't. “mSQL” and, in an alphabetic stretch, Postgre SQL can be inserted in the “M” slot. Overall, it's a well integrated suite of technologies and there is a lot of information, code, and software out there catering to it.

If you're going to write for LAMP, the first thing you're going to have to do is figure out how you're going to get to the database. As one of my buddies is fond of noting, development is nothing more than taking data from one place and putting it somewhere else. Database connectivity methods are like opinions, and everyone has one. I do, too, and I like to think it doesn't stink much.



Subscribe to RSS - PHP