echo "Document formats supported:<br /><pre>"; $pointer = "_value0"; for ($k = 0; isset($ipp->printer_attributes->document_format_supported->{$pointer}); $k++) { echo $ipp->printer_attributes->document_format_supported->{$pointer} . "\n"; $pointer = "_value" . ($k + 1); } echo "</pre>"; echo "------- END FOR PRINTER {$i} -------------<br /n>"; } /* send a buggy request */ echo "<br /><br /><br /> TEST 32<br />"; echo "OPERATION " . $j++ . "<br />"; $ipp->setData("This is an error : nothing printed\n"); $ipp->generateError("request_body_malformed"); echo "Sending a buggy request. status: " . $ipp->printJob() . "<br />"; $ipp->resetError("request_body_malformed"); /**/ echo "END OF OPERATIONS <br /><br /><br />"; /* get informations about jobs and status */ echo "Available printers:<br />\n"; echo "<pre>\n"; print_r($ipp->available_printers); echo "</pre>"; echo "Jobs:\n<br />"; echo "<pre>\n"; print_r($ipp->jobs); echo "</pre>"; echo "Jobs URIs:\n<br />\n"; echo "<pre>\n"; print_r($ipp->jobs_uri); echo "</pre>";