I haven't solved the problem yet, but I'm pretty sure that the problem is
that thttpd doesn't always set PATH_INFO nor PATH_TRANSLATED. (php3 seems
to require these for various reasons.) I guess I'd have to convince
thttpd to always set these. This could be a long haul.