php-ipp icon indicating copy to clipboard operation
php-ipp copied to clipboard

Can only print once before restarting CUPS

Open josealgardataborges opened this issue 10 years ago • 0 comments

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?

josealgardataborges avatar Oct 29 '14 13:10 josealgardataborges