On 24 mai, 19:33, Szabolcs Nagy <[EMAIL PROTECTED]> wrote: > > Is there a way I could code the base (core) code in Python and have > > PHP call it? I've really liked using SQLAlchemy and there are other > > * quick and dirty solution: > in a shell: > $ python yourscript.py <pipe_in >pipe_out > in the php script: > fwrite(pipe_in, input_data); > results = fread(pipe_out, sizeof_results); > > * simple and nice solution: > do not ever use php
Write a CGI wrapper around your python script, and publish it using mod_python. And make the appropriate http requests from PHP. -- http://mail.python.org/mailman/listinfo/python-list