php - Printing to a network thermal printer -
i designing restaurant pos scheme self , facing little problem. webserver xampp on windows 7 32 bit having ip 192.168.1.20. there network thermal printer connected straight network on ip 192.168.1.25. installed printer on webserver , working windows environment. shared printer on webserver name "p2"
now have mapped network printer lpt1 using command:
net utilize lpt1: \192.168.1.20\p2 /persistent:yes
now problem is: when print file command prompt using command
print file1.txt /d:lpt1 works charm, when phone call command php webpage using command
exec('print file1.txt /d:lpt1'); nil happens...
when tried debug issue using
exec('print file1.txt /d:lpt1', $output); var_dump($output);
the next error comes:
array(1) { [0]=> string(32) "unable initialize device lpt1" }
now don't know, what's wrong this.
help needed
php printing xampp
No comments:
Post a Comment