in reply to CGI upload limit

One way that I have used before to run an application with different configurations, in your case, a different upload limit per application, is to create separate directories with your CGI application copied to each with a different configuration for each one. This eliminates the need to put in any extra "which configuration do I need" logic, and also gives you the flexibility to password protect some dirs without affecting others.

For instance, members using your CGI application may have a larger upload limit than non-members, so creating a separate directory with a "members-only" configuration allows you to do that with minimal effort.

--
hiseldl
"Act better than you feel"