// logging almost quiet $ipp->setLog('/tmp/printipp', 'file', 2); // logging verbose $ipp->setLog('/tmp/printipp', 'file', 3); // logging very verbose $ipp->setHost("localhost"); $ipp->ssl = $ssl; //$ipp->setHost("toto");// Resistance test $ipp->setHost($host); //Put your printer IP or hostname/fqdn here $ipp->setPrinterURI($printer_uri); // Set printer URI here //$ipp->setPrinterURI("ipp://localhost:631/printers/epson"); // Set printer URI here //$ipp->setPrinterURI("/printers/foo"); // => abort "client-error-not-found" $ipp->setUserName("php IPP tester"); $ipp->setFidelity(); // printing abort if every attribute could not be set on printer. NOTE: CUPS do not abort :) $ipp->setCharset('utf-8'); $ipp->setLanguage($language); $ipp->setAuthentication($user, $password); // username & password $j = 0; $test = 1; /* printing a large file */ echo "<br /><br /><br />TEST 1<br />"; echo "OPERATION " . $j++ . "<br />"; $ipp->setAttribute("printer-resolution", "1440x720dpi"); $ipp->setAttribute("job-billing", "Thomas"); $ipp->setAttribute("print-quality", "high"); $ipp->setAttribute("scaling", 100); //$ipp->setCopies(2);