After (years) of thinking about how to do a "php-lite", I finally finished a cgi for use inside a small web server. I use thttpd on bering, but this should work wtih weblet (sh-httpd). The code compiles to about 11K with 2.2.5 glibc (yeah, non-standard bering). It compiles much smaller against uclibc.
The basic idea is that it takes all form data and makes them environment variables. (nothing new there); the new parts are A) it handles binary file uploads (ssh keys, ipsec certs) and B) it handles conditionals - if / then / else - so that cgi programming is a bit easier (at least for me) than writing everything from shell script. Its kinda like a very minimalistic php. A short discussion and the code is avalable at http://www.tetrasec.net/webconf.html I'd be very grateful for suggestions / flames / whatever - I'm currently using it to power a web configuration engine, but would love to fold it in with what Eric & Lynn are doing. ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel