phpprintipp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpprintipp] problem with printing on a Windows IPP server.


From: Thomas Harding
Subject: Re: [Phpprintipp] problem with printing on a Windows IPP server.
Date: Fri, 17 Nov 2017 08:10:00 +0100
User-agent: K-9 Mail for Android


Le 16 novembre 2017 16:38:45 GMT+01:00, Otto Algreen <address@hidden> a écrit :
>HI

Hello!

>
>I have a problem.
>
>My code:
>                    require_once("../print/PrintIPP.php");
>

Well, I'm unsure (so long time I didn't use it), but I think you must also load 
BasicIPP.php and http_class.php .

Another problem which could arise now is that it has been written a long time 
ago (2006-2011, maybe PHP 5.2 at last), so PHP could changes enough itself to 
not allow properties not to be declared before to be used. Several problems of 
that kind arised by past (from "deprecated" to "simply dont work"), so you 
should review the code to unsure it complies with today PHP standards.

I'm retired and didn't code in php for years ^^

>
>                    $ipp = new PrintIPP();
>                    $ipp->setHost('192.168.1.10');
>                    $ipp->setPort('80');
>                    $ipp->setPrinterURI('/printers/B1260DNM/');
>
>                    $ipp->setData('example_039a.pdf');
>$ipp->printJob();
>
>
>But I get this error then printing:
>
>Notice: Undefined property: PrintIPP::$attribute_name in
>C:\xampp\htdocs\print\PrintIPP.php on line 942
>
>Notice: Uninitialized string offset: 6726 in
>C:\xampp\htdocs\print\PrintIPP.php on line 1214
>
>Notice: Uninitialized string offset: 6727 in
>C:\xampp\htdocs\print\PrintIPP.php on line 1215
>
>Notice: Uninitialized string offset: 6726 in
>C:\xampp\htdocs\print\PrintIPP.php on line 1217
>
>Notice: Uninitialized string offset: 6727 in
>C:\xampp\htdocs\print\PrintIPP.php on line 1218
>
>Notice: Undefined offset: 0 in C:\xampp\htdocs\print\PrintIPP.php on
>line 1291
>
>Notice: Undefined property: PrintIPP::$parsed in
>C:\xampp\htdocs\print\PrintIPP.php on line 1307

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma 
brièveté.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]