Apache/PHP under Windows XP
I've been reading/searching a lot (maybe not enough) and I cannot find a method to do this... therefore I need some help if possible.
I have an application (php) that generate several PDF's files.. I can individually open and print them without problem but I've trying to implement something that allows to print all of them massively .. have the name/location of the files therefore I can loop through them and call "something" to print each one... I have tried using backticks, exec, shell_exec like in this simple example :
Code: Select all
<?php
$file = "MYSQL-explain-diagram.pdf";
$printcmd = `PDFXCVIEW.exe /print $file`;
echo "<pre>$printcmd</pre>";
?>the location for PDFXCVIEW.exe (my pdf viewer) is in the PATH and the file to print do exist... but no luck.. tried also calling a .bat without luck either
the questions are... is even possible to implement this?.. if so... could somebody give me some pointer where/what to look ? or.. how do you guys solve this scenario?
thank you