ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> zope-List
zope-List
Re: [Zope] how to include PHP from another server?
by Maik Jablonski other posts by this author
Apr 3 2002 7:20AM messages near this date
[Zope] how to include PHP from another server? | Re: [Zope] how to include PHP from another server?
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@[...].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.
>  
>  Thanks,
>  -- 
>  Jack Coates
>  Monkeynoodle: A Scientific Venture...

_______________________________________________
Zope maillist  -  Zope@[...].org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )
Thread:
Jack Coates
Maik Jablonski
Jack Coates

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved