Re: How to Embed PHP in HTML print

2010-01-24 Thread Steve Holden
NickC wrote: > On Sun, 24 Jan 2010 10:37:51 +, Duncan Booth wrote: > >> content with ajax. Alternatively, use urllib in Python to retrieve a >> page from the Apache server and insert that into its own output: that > > Thanks for hint on urllib. I shake my head in amazement with python > som

Re: How to Embed PHP in HTML print

2010-01-24 Thread NickC
On Sun, 24 Jan 2010 10:37:51 +, Duncan Booth wrote: > content with ajax. Alternatively, use urllib in Python to retrieve a > page from the Apache server and insert that into its own output: that Thanks for hint on urllib. I shake my head in amazement with python sometimes. I'll write it he

Re: How to Embed PHP in HTML print

2010-01-24 Thread Duncan Booth
NickC wrote: > Some possible ideas: > Is there a way I can get python to call functions within a PHP app? > Perhaps write the plugin in a separate script in PHP, and include that > page within my output so that apache recognises the page inclusion? How > to get apache to pay attention to the o

How to Embed PHP in HTML print

2010-01-24 Thread NickC
I am running a Python application under apache web server, executing as a cgi script. Most of the output is print statements that write HTML. I'd like to embed some PHP code within the HTML. The PHP is a gallery plugin script that talks to the core photo gallery application, written in php.