Christoph Hubmann wrote: > > that means, i must connect directly to the midgard database with php, > without midgard lib or how is it possible to use php (or any other scripting > language) from command line with the midgard lib? >
While accessing midgard-lib directly would certainly be elegant (this can be done somehow trough PHP and midgard-php [since this is how it's done with apache and mod_midgard] but the specifics escape me) easier solution is to use lynx (or similar) and call a hidden (possibly password protected) page which handles the compilation and sending of the newsletter. I did something like this for a live-roleplaying game character management system built with midgard (1.2.5 so it's a kludge). Characters (articles) are assigned a player (person) then there is a script that walks trough characters, build an html email out of each character data and sends it to the corresponding player, this was manually called by the gamemasters when it came time to mail the characters but It could be just as easily called with lynx trough cron. -- Eero af Heurlin [EMAIL PROTECTED] Consultant Partner Tel: +358 (0)20 198 6035 Nemein Solutions Oy http://www.nemein.com/ Nadmin Studio and Midgard support at +358-20-198 6050 / [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
