[Zope] Some tough questions about zope... (long)
Ronald Offerman
ron@rotflol.cx
Wed, 03 Mar 1999 22:57:31 +0100
>
>
> > -----Original Message-----
> > From: Tony McDonald [mailto:tony.mcdonald@ncl.ac.uk]
> > Sent: Wednesday, March 03, 1999 9:42 AM
> > To: zope@zope.org
> > Subject: [Zope] Some tough questions about zope... (long)
> >
> >
> > b) Can I integrate with the Perl/PHP3 programs that we have (the Perl
> > programs are mainly .cgi, but the PHP3 programs are server-side
> > scripted, and as such are embedded into the HTML itself). This is so
> > that I can
>
> ...do what? ;) Zope can call your cgi scripts just like they are, as
> URLs. They would, of course, have to be external to Zope and if you
> have a bunch of little ones you may find it better (and a damn sight
> easier) to rewrite them as Python in Zope as external methods. (DTML is
> also a rather powerful language for being so simple). Just leave your
> PHP stuff in your documents; Zope will parse out the DTML and return it
> to the server, which will parse out the PHP stuff and return it to the
> browser. In fact, you can probably make DTML and PHP work together
> nicely and simplify much of your PHP code. In the quickie case you
> don't need to change your PHP.
If this would work (having Apache parse the PHP code in the pages returned by Zope), you would save me a lot of painfull converting working PHP code (mainly database related) and I would gradually convert from PHP/Apache to Zope/Python/Apache.
Pleaz tell me how this neat trick is done... (maybe some fiddling with the headers???)
Hint:
Creating a DTML Document/method with the following contents doesn't fool Apache in rendering PHP!
<!--#var standard_html_header-->
<h2>Give me the (PHP) money...</h2>
Read the phpinfo between the lines... NOT!!
<hr>
<? phpinfo(); ?>
<hr>
<!--#var standard_html_footer-->
--
<- Ronald Offerman | ron@offerman.cx
<- Root Powered Carrot Munchers Ltd. Inc. SA AG BV
"This is Linux Country. On a quiet night, you can hear Windows NT reboot!"
"Daddy, why do those people have to use Microsoft Windows?"
"Don't stare, son; it's not polite."
"M$ Windows NT, an accident waiting to happen"
"What goes up, must come down. Ask any system administrator."
".sig too big? Flame me, I'm cold!"