Welcome Guest, Not a member yet? Register   Sign In
Get PHP to talk to Python
#1

[eluser]seantaylor[/eluser]
Hello all you smart people out there.

I'm writing a web app using CI. I need a user (through the app) to execute scripts on the server written in python. The scripts are highly computational for scientific research. Is there any way to get PHP to talk to Python, directly or indirectly. All solutions welcome! Thank you.
#2

[eluser]WanWizard[/eluser]
I never tried it, but there's a Python extension in PECL: http://pecl.php.net/package/python

And you can always call the script using exec(), system(), popen() or proc_open(), depending on your needs and what's enabled on your server platform.
#3

[eluser]seantaylor[/eluser]
Thanks WanWizard, this was just the sort of thing I was looking for. I just needed a general direction. Any other ideas would be most appreciated!




Theme © iAndrew 2016 - Forum software by © MyBB