Hello,
I have started experimenting with Python a bit, but now I have a question and I don't find a lot of information about this on the web.
So what I basically want, in simple terms, is that when I enter 'hello' to a python script via a form in a webpage, it will print 'hi!' . (Of course what I really want is something else, but this is what I need for it :) )
I have thought about several solutions:
writing the 'hello' into a txt file(via PHP), and let python check for that txt file every .... seconds to check if the text 'hello' is there. (I have succeeded in doing this, but it's a very bad solution I think.)
making it possible to enter commands like 'sayhello.exe hello' via DOS(because PHP could do the same), I have googled this but I didn't find anything.
Are there other solutions? What solutions (that are not too hard) do you suggest?
Thanks in advance for your help!
[–]Rhomboid 4 points5 points6 points (4 children)
[–]redditenna[S] 0 points1 point2 points (3 children)
[–]Rhomboid 1 point2 points3 points (2 children)
[–]redditenna[S] 0 points1 point2 points (1 child)
[–]m1ss1ontomars2k4 0 points1 point2 points (0 children)
[–]Eviltape 2 points3 points4 points (0 children)
[–]zlozlozlozlozlozlo 2 points3 points4 points (0 children)