Are there any special permissions or settings for executing a python script that create a new file or image? This is my code:
<?
function py(){
exec( 'python my_script.py');
echo "ok";
}
py();
?>
And this is my python script (example):
import sys
f = open('out.txt', 'w')
print >> f, 'thats all'
f.close()
Running php I get the message "ok", but the file is not created. What am I doing wrong?
source
share