> On Fri, 14 Jan 2000, Alexander Bokovoy wrote:
> 
> > There is another thing that would be done with PHP4. We can separate
> > support for &(variable:modifier); syntax from Midgard-PHP module so
> > that it could be used outside Midgard-based sites too (for example, one
> > could compile PHP as cgi binary and use it from command line to test
> > Midgard-oriented scripts without placing it into DB). It is tightly
> > connected with planning extensible parser's support. Hence, at Zend
> > level we'll do support for parsers, and at PHP module do all other
> > Midgard bindings.
> 
> On that note, it should be possible to work mod_midgard into mod_php3
> so Midgard in it's entirety could be used as a CGI binary. Pros, cons?
I agree. We could create compability layer to mimic mod_midgard functionality 
in PHP CGI binary. Of course, these functions should be used only if Apache 
support in PHP is disabled but Midgard's one is enabled.
One should write his/her scripts in such manner:
<?php
$cgi_midgard = mgd_get_midgard
("mysql://user:password@database","/path/to/midgard-root.php3");
$scenario = $cgi_midgard->translate_url();
eval $scenario;
?>

This is a rough sketch though. You may notice different parameters to 
mgd_get_midgard() and especially first parameter which will allow select not 
only MySQL database but other supported too ("mysql://", "odbc://", "oracle://" 
etc).

Your toughts?

BR,
Alexander Bokovoy.
---------------------------------------------
This message was sent via BSPU MailMan server.
http://www.bspu.unibel.by/MailMan/



--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to