In article <cdeeb47d-ab8b-4e78-9be2-ded855230...@googlegroups.com>,
 JL <lightai...@gmail.com> wrote:

> Python is my favorite language. Very often, I am forced to use other 
> languages like php because of better library support for web applications. Is 
> it possible to write functions in python and then get php to call these 
> functions?

At one time, Songza was half PHP, half Python.  The parts ran in 
separate processes, communicating over HTTP.  I think that's probably 
what you want to do here.

If you define a clean, and well-documented interface, nobody has to know 
what language is running behind it.  Even better, if you have a 
comprehensive test suite for each interface, you can swap out 
implementations with a fair degree of confidence that you haven't broken 
anything.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to