I'd get to grips with a scripting language... (e.g. PHP, TCL or Perl)... then you can do whatver you want.