|
From: | Timothy Fenton |
Subject: | Re: [Phpprintipp] setup problems - more info |
Date: | Wed, 23 May 2012 15:48:54 -0400 |
As some follow-up, I think I figured out a few things, but still am unsuccessful at printing. I realized that I could go to the printer IP address in the browser, and that got me this info:
Based on that, I think it is correct to use: $ipp->setHost("KMBT538196"); I still don’t know the correct URI, but one thing I’ve tried is: $ipp->setPrinterURI("ipp://localhost:631/printers/KONICA MINOLTA C252"); If I use the default port (which I am still unsure whether that is correct), then the response I get is: Warning: server responds http/1.1 404 not found in D:\IntraWeb\ERP\General_Code\phpprintipp-0.83\php_classes\BasicIPP.php on line 1232 Host is KMBT538196 Port is 631 Printer URI: ipp://localhost:631/printers/KONICA MINOLTA C252 Data set ************** Date: 2012-05-23 15:44:21 *********** Charset: us-ascii Unset forcing data to be interpreted as RAW TEXT Language: en_us Unset forcing data to be interpreted as RAW TEXT mime type: application/octet-stream operation id is: 1 String sent to the server is: [1]Gattributes-charsetus-asciiHattributes-natural-languageen_usE Printing a FILE Processing HTTP request H T T P R E Q U E S T : Request headers: POST /printers/ HTTP/1.1 : Content-Length: 10751 Content-Type: application/ipp Host: KMBT538196 User-Agent: PRINTIPP/0.81+CVS Request body: 10751 Bytes*********** END REQUEST BODY ********* H T T P R E S P O N S E : Response headers: http/1.1 404 not found: content-type: text/html content-length: 0 Response body: ********* END RESPONSE BODY ******** Any help you can offer would be much appreciated. I also upgraded to Apache 2.4.2 with PHP 5.4.3, but that didn’t seem to matter here. Thanks, Tim From: Timothy Fenton Thomas, I am using Apache 2.3 on a Windows SBS 2008 64 bit system with PHP 5.3.9. So far I have not been successful in getting anything to print from php using any method. Using your classes, I always get something to the effect of: Notice: Use of undefined constant debug_backtrace - assumed 'debug_backtrace' in D:\IntraWeb\ERP\General_Code\phpprintipp-0.83\php_classes\http_class.php on line 316 Warning: Invalid argument supplied for foreach() in D:\IntraWeb\ERP\General_Code\phpprintipp-0.83\php_classes\http_class.php on line 317 Warning: \nE_USER_WARNING: [errno: ]: Unable to connect to "tcp://192.168.11.50 port 192.168.11.16": No connection could be made because the target machine actively refused it. in D:\IntraWeb\ERP\General_Code\phpprintipp-0.83\php_classes\http_class.php on line 329 Notice: Undefined offset: 0 in D:\IntraWeb\ERP\General_Code\phpprintipp-0.83\php_classes\BasicIPP.php on line 1197 Warning: No Response From Server in D:\IntraWeb\ERP\General_Code\phpprintipp-0.83\php_classes\BasicIPP.php on line 1218 Printing a FILE I’m not sure why the constant debug_backtrace is not defined, but if that was working maybe I could get more specific error information. I am not clear what I should be using as the setup parameters for a basic print of an existing pdf, but here is the info I have: Server Name: CCADC01 (192.168.11.50) From the printer test page: Printer Name: KONICA MINOLTA C252 Printer Model: KONICA MINOLTA C252/C252P VXL Port Name: 192.168.11.16 Share Name: bizhubC252 Can you give some direction for what to use with setHost, setPort, and setPrinterURI? I have tried every combination of things I can think of with no success. Thanks, Tim |
[Prev in Thread] | Current Thread | [Next in Thread] |