Calling Python code from inside php
sturlamolden
sturlamolden at yahoo.no
Fri Apr 25 11:02:01 EDT 2008
On Apr 23, 9:13 pm, alexel... at gmail.com wrote:
> A simple yet dangerous and rather rubbish solution (possibly more of a
> hack than a real implementation) could be achieved by using a
> technique described above:
>
> <?php
> echo exec('python foo.py');
This will spawn a Python interpreter, and not be particularly
efficient. You could just as well have used CGI.
More information about the Python-list
mailing list