Lets say i have a simple python script:
print("I'm serving python version ", sys.version, " located in ", sys.path)
Which resides inside my www/python directory.
What i had tried is to call it through php, with a include call, figured that either no php was installed, or the include didnt work at all.
I tend to say php is not installed, as an "echo" command inside the php section remained silent.
I had searched google for "how to display python on http", what i had found are plenty of python scripts, but none of them seemed to be 'callable' through webaccess.
That means, how do i display the script properly on the browser?
If i call it with http://URL/python/script.py
all i get is the plain text.
Thanks in advance
Basicly my question is: How do i call the python script from html?
With the search term above, i only get results on how to generate html from phyton, which is not what i want.
So, suggestions for another search term are very welcome.
Thought i post the things i had found, but dont help me any further (maybe i dont understand them properly
If i copy paste them onto the server, the html parts are displayed, but the python code is displayed either.. the code, not the 'result' of the code