I have a python script that opens a file. It will run in terminal and it will open the readme.html file and prints everything to terminal. When i access the python.php page i want it to execute the python file and open the readme.html. It runs the python file with no errors and prints out both "I am Here" and "I am Done" but does not open the readme.html file. I think it could be a permissions issue. But i have 777 main.py, python.php, and readme.html. They are all user:(none) as well. How can i fix this?
main.py
#!C:/Python27/python.exe
import os
print "I am Here"
os.startfile('C:/wamp/www/readme.html')
print "I am Done"
python.php
echo "Python test<br/>";
echo exec("C:/Python27/python.exe C:/wamp/www/main.py",$output);
var_dump($output);
echo "After";