![]() |
How to run php in a python file - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: How to run php in a python file (/thread-24819.html) |
How to run php in a python file - CrazyMakes - Mar-05-2020 i have a problem i am currently creating a website with php and i have a pyhton program that i want to run on my website i tried using the php function include but that just printed all of the code instead of the output of the code. RE: How to run php in a python file - jefsummers - Mar-05-2020 Please post your code RE: How to run php in a python file - menator01 - Mar-05-2020 Have you tried using the php execute? https://www.php.net/manual/en/function.exec.php RE: How to run php in a python file - ndc85430 - Mar-06-2020 Why? Is there a reason you're not just writing the web app in Python? RE: How to run php in a python file - ibreeden - Mar-06-2020 What kind of webserver are you using? You will have to configure CGI (Common Gateway Interface) to make your webserver understand it has to execute code and return the result to the browser. Perhaps there are other ways then CGI, I am not sure of that. RE: How to run php in a python file - CrazyMakes - Mar-06-2020 (Mar-05-2020, 10:53 PM)menator01 Wrote: Have you tried using the php execute? no i havent yet i could try that though |