[Zope] how to include PHP from another server?
Maik Jablonski
maik.jablonski@uni-bielefeld.de
Thu, 4 Apr 2002 09:16:24 +0200
hi,
On Wed, 03 Apr 2002 20:07:35 -0800 (PST) "Jack Coates" <jack@monkeynoodle.org>
wrote:
> thanks, that sounds workable. I gave it a shot, and the result is kind
> of odd, though. If I call it with a simple URL, like so:
>
> <dtml-var geturl url="http://www.yahoo.com">
try this instead:
<dtml-var "geturl('http://www.yahoo.com')">
greetings, maik.
>
> On Wed, 3 Apr 2002, Maik Jablonski wrote:
>
> > hi jack,
> >
> > maybe you can use an External Method like below to fetch the content of a
> > given url. the only magic would be constructing the right url with the
> > right query-string for your php-scripts. something like adding
> > REQUEST['QUERY_STRING'] to the url should work in most cases:
> >
> > import urllib,sys,os
> >
> > def geturl(url):
> > fp=urllib.urlopen(url)
> > content=fp.read()
> > fp.close()
> >
> > return content
> >
> > - maik jablonski
> >
> > On Tue, 02 Apr 2002 21:49:47 -0800 (PST) "Jack Coates"
> > <jack@monkeynoodle.org> wrote:
> >
> > > Hi all,
> > >
> > > I have the following situation:
> > >
> > > server1: Apache ProxyPass -> Zope
> > >
> > > server2: Apache with PHP -> lots of static and PHP-ized goodies
> > >
> > > And what I want to have happen is:
> > >
> > > browser goes to http://server1/mail, which is something like:
> > > <dtml-var standard_html_header>
> > > <frameset>
> > > <frame src="http://server2/twig/">
> > > </frameset>
> > > <dtml-var standard_html_footer>
> > >
> > > This is clearly not the right way to do it, as it does not work (using
> > > internal or external name of server2).
> > >
> > > Is there a right way to do this? KeBasa seems like a possibility for the
> > > static stuff, but it seems to my untutored eye like this ought to be
> > > more simple than installing another Product.