PHP

PHP 5.2.x still in the RedHat doghouse, but liberation is at hand

It seems RedHat doesn't consider PHP to be a terribly important language for people using RHEL 5.4. AFAICT the latest PHP available from the official RedHat repositories is 5.1.6. This is woefully out of date if you are planning to use PHP applications like Drupal which really need 5.2.x.

The options:

1. Find a good 3rd party respository offering the PHP you need
2. Build your own RPMs
3. Compile from source.

Last.fm Drupal Module: Bugfix Release 0.6

BUG: If click Save Configuration on the admin form you will get a blank page...

Fixed. Silly... My debugging output was thwarting the header() in includes/common.inc line 311. I have implemented simple debugging output in the bottom of the block for developer convenience.

BUG: Track times: They are probably incorrect for you.

Fixed. _lastfmdev_adjust_server_time() now calculates the offset between the Last.fm server's timezone and the date_default_timezone set in the Drupal installation.

Release early and release often: Last.fm Drupal Module

Over the last few weeks I've been working on a Last.fm module for Drupal. I started with some code by an English programmer. I'd hope to polish it up before sharing my modifications with him, but since I see that he's back at work on it I'm posting it here and sending him this message:


The Wikified Todo List

Todo Wiki Full

I abandoned the previously blogged phpWiki in favor of the much more
user friendly and elegant MediaWiki
application. MediaWiki, another Apache-MySQL-PHP application, is the
workhorse behind Wikipedia, among other great wikis. One of the most annoying problems that I quickly ran into with phpWiki was that the application began complaining about "conflicting" edits as I made subsequent edits to the same page. Leveraging my programmer impatience, I did minimal troubleshooting and began searching for a different wiki solution.

How to have a qwiki at work: Mozdev, Emacs and <strike>PHPWiki</strike> MediaWiki

As a one-time English major, I celebrate some twisted
pride in documenting my code and projects. In my zeal I've created a slew of text files, many with similar names,
many with deprecated info. How I could organize this
mess in such a way that it would be intelligible to another?
Moreover, how can I improve my own ability to quickly locate
information (full text searching) and deftly navigate related documents?

My problem seemed a perfect excuse to learn more about wikis and how I could tweek my familiar tools to make authoring a wiki quick and convenient.

clean_dir.php: A php shell script

Purpose: Clean out a directory tree without deleting the directories or destroying their permissions. Don't delete files with certain extensions no matter where they are encountered. This is used to clean out a directory tree before using cvs export to publish new code.

clean_dir.php is pretty hastily hacked together - I'm sure others have written similar routines more gracefully - but it presented some interesting challenges:

  • I han't written php for the shell for a while. Had to review how to take user input from STDIN. Had to use ob_flush() to get win32 to display preliminary text before waiting for input .

Syndicate content