I am developing a php based web app but I have a python script that I already had that I want to integrate into my system. Is it possible to embed/include the python script within the main content area of my web app on a specific page?
-
you could call the script on the command line using exec. stackoverflow.com/questions/5497540/…Jonathan Kuhn– Jonathan Kuhn2013年09月27日 19:10:25 +00:00Commented Sep 27, 2013 at 19:10
-
Not to beat you up, but it is Python, not phython.karthikr– karthikr2013年09月27日 19:12:19 +00:00Commented Sep 27, 2013 at 19:12
-
Thanks for that Jonathan! and sorry! Hadn't realized I spelt it wrong. Some silly spell check lol.BHWD– BHWD2013年09月27日 19:21:21 +00:00Commented Sep 27, 2013 at 19:21
2 Answers 2
I use this app for embedding pythonb code into php http://www.csh.rit.edu/~jon/projects/pip/
answered Sep 27, 2013 at 19:27
Tampa
78.8k123 gold badges292 silver badges431 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
There's this implementation of python called python server page that you can use to embed python into the web app directly just like php but it would have file extension .psp it is not actively developed, Google it up
answered Sep 27, 2013 at 19:41
user2711485
4291 gold badge4 silver badges5 bronze badges
Comments
default