windows php exec apache -
windows 10, php 5.6 mod, apache 2 service
in browser dont see exec() return value
<?php exec("python c:\script.py", $output); var_dump($output);
if change command using "python" smth "dir" works , return results
<?php exec("dir", $output); var_dump($output);
if run python script command line works expected
> python c:\script.py
if run php script command line works expected , exec return required results python script
> php -r "exec('python c:\script.py', $output); var_dump($output);"
i suppose problem related apache permissions or php permissions python.exe ? may smth. else ?
advise me pls , explain how change permissions im not familiar windows not user friendly :d kidding :)
Comments
Post a Comment