Printing From Command Line Follow
I'm wonder if anyone ever tried to print labels from php via command line. Im up to develop a modul for a webshop with the functionality of printing labels for products.
Here is the code:
$execString = "CMD /C \"\"c:\\Program Files\\Seagull\\BarTender Suite\\bartend.exe\" /F=\"d:\\ASD\\DSA\\Test1.btw\" /UID=\"**\" /PWD=\"****\" /W=\"OITM.ItemCode LIKE '%".$_POST[$refName.$i]."%'\" /p /C=".intval($_POST['qty'.$i]). " /CLOSE /X\" && exit";
If i post a form with refNames and quantities, the page start to load, and its goes for infinite. (No, i don't have infinite loops in the code)
Thanks for any suggestions!
★ BarTender Hero ★
Please sign in to leave a comment.