Run python server script via php file and display output -


after many trials , many days of search asking question. have tried many online solutions doesn't seem work me. have python file server.py starts flask server me.

enter image description here

i want start file php file , display output. right trying exec() function webpage keeps running , not figure if server has started or not.

i have tried following ways exec() , making batch file

exec('c:/foldername/py/apps/webapp/s.bat &'); or exec('c:/foldername/py/apps/webapp/s.bat > /dev/null'); 

or

$command = "python c:/folder/server.py"; $pid = popen( $command,"r"); 

please help

i able achieve want in end. created task schedule open batch file can start server. set trigger on windows event. after created batch file creates event in windows event logger , php script run batch file. so, able start python server file php script of task scheduler.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -