Re: Comm. between Python and PHP

2005-02-23 Thread Nils Emil P.Larsen
Hello Python is perfectly capable of generating HTML. You don't have to demean yourself by working in PHP. Thanks for the tip about using Python instead of PHP to generate web pages. I may follow it. Nils Emil -- My reply-address is valid. www.bios-flash.dk Min svar-adresse er

Re: Comm. between Python and PHP

2005-02-23 Thread Nils Emil P.Larsen
Hello Sorry for not being too exact in my request! If the data you want to pass is structured then you might consider XML-RPC which is a cross platform way of passing structured data XML-RPC looks like something very suitable for my needs. It seems Python handles the remote procedure calls very

Comm. between Python and PHP

2005-02-22 Thread Nils Emil P.Larsen
Hello I'm building a daemon in Python. It will measure and control some physical devices on a serial bus. Since it is a daemon, it will never terminate and I can't interfere with the regulation of the devices by using command line parameters. I want to control the regulation by using a Internet

Re: Comm. between Python and PHP

2005-02-22 Thread Peter Hansen
Nils Emil P. Larsen wrote: I'm building a daemon in Python. It will measure and control some physical devices on a serial bus. Since it is a daemon, it will never terminate and I can't interfere with the regulation of the devices by using command line parameters. I want to control the regulation

Re: Comm. between Python and PHP

2005-02-22 Thread Noah
It wasn't quite clear, but I assume that you want a PHP script that can call on the Python daemon and not have the daemon make calls to a PHP script. You could use xml-rpc which is built into Python as of version 2.2: http://docs.python.org/lib/module-xmlrpclib.html On the PHP side xmlrpc is

Re: Comm. between Python and PHP

2005-02-22 Thread Nick Craig-Wood
Peter Hansen [EMAIL PROTECTED] wrote: Nils Emil P. Larsen wrote: What is the easiest way to make my threaded Python daemon communicate with a PHP-script running from Apache2 on localhost? Easiest of course depends on lots of things, and mostly on specifics that you haven't told us, and

Re: Comm. between Python and PHP

2005-02-22 Thread Tim Roberts
Nils Emil P. Larsen [EMAIL PROTECTED] wrote: Hello I'm building a daemon in Python. It will measure and control some physical devices on a serial bus. Since it is a daemon, it will never terminate and I can't interfere with the regulation of the devices by using command line parameters. I want