Scriptorium 1.6 Released
Posted on November 8th, 2005
After far too long since the previous release, I finally put out Scriptorium 1.6 last week. Naturally, some problems have already started to surface.
One user wrote in to say he was getting strange error messages and
that the upgrade script was getting stuck in a redirection loop. It
turns out that he, like me, was hosted on Dreamhost which uses the CGI
version of PHP rather than the standard Apache module (actually both
are available, but cgi is the default). It turns out that using
$_SERVER['SCRIPT_NAME'] is quite a no-no when you're on
the CGI side of things. Rather than returning the file name of the
current script, as it normally does, you end up getting the path to
the PHP executable. Worse, you can also find yourself staring down
ultra cryptic error messages about invalid ASCII characters being
received on input. The moral of the story: use
$_SERVER['PHP_SELF'].