php-ipp
php-ipp copied to clipboard
Can only print once before restarting CUPS
Hello
As anyone had this problem?
I print once and then i can only print again after i restart CUPS with 'service cups restart', then wait a few seconds and i can print again.
The PHP code im using to print is the following:
setHost("localhost"); $ipp->setAuthentication("root","password"); // system username & password, need to be lpadmin $ipp->setPrinterURI("/printers/QL-720NW"); $ipp->setData("test_file.txt"); echo "Job status: ".$ipp->printJob(); // Print job, display job status ?>
What am I missing?