php – exec or shell_exec or timeout windows server 2016-ThrowExceptions

Exception or error:

by now I try to use shell_exec or exce to print a file via FoxitReader.
But I think the server blocks this operation. In php.ini is nothing of that features blocked.

The command that I run is:

exec("\"C:\\Program Files (x86)\\Foxit Software\\Foxit Reader\FoxitReader.exe\" /t \"" . $Filename . " \" \"\\\\DRUCKER\\" . $toPrint["printOn"] . "\""); 

I run that exactly command in command line, and that works. But via php Script this code did not run.

How can I solve this problem? On Windows client there is no problem with these functions…

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *