On windows xp I can run many commands form PHP with shell_exec() function.
I need to use OfficeToPDF on windows 10 with PHP. My php script is:
<?php
$command = 'OfficeToPDF input.docx output.pdf';
$exec = shell_exec($command);
echo $exec;
?>
This script works on windows XP Professional, but not on windows 7, 8, 10. OfficeToPdf simply opens Microsoft Word and saves file as PDF. What changed on win7, win8, win10? Why I couldn't execute this command from PHP on new OS's?
I have apache service automaticly starts from SYSTEM user.
UPDATE: But I can run OfficeToPDF input.docx output.pdf
command when I open cmd window manually.