1

I have a web application written in PHP. In a few places I make calls to python script through exec(). I was wondering if there is a better way of doing this. I was thinking about creating soap service that would allow me to access python functions in the script. Does it make sense to do that? and are there any other technologies that would let you build soap-like service but local instead of http?

0

1 Answer 1

1

Sure, it makes sense. HTTP is just one of many application-level protocols that might be appropriate. Another approach might be to make your python available to celery. (While celery is natively callable from python, it's not limited to python.)

Sign up to request clarification or add additional context in comments.

3 Comments

Celery looks interesting. I will definitely take a look at it.
How about using sockets to communicate between 2 scripts? Is that viable?
@marcin_koss sure, but personally I'd never create my own socket library if I can find one already. If your python is worth sharing, maybe you can just make a web service out of it and open source it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.