Giter VIP home page Giter VIP logo

php-ipp's Introduction

php-ipp

A clone of http://www.nongnu.org/phpprintipp/

Here is a new PHP class, that needs at least PHP5. This class implements Internet Printing Protocol on client side.

COPYRIGHT Copyright (C) 2005-2008, Thomas Harding.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

[email protected]
Thomas Harding, 1 rue Raymond Vannier, 45000 ORLEANS, FRANCE

STATUS Currently, it is able to print on an IPP server, parses server's response, is able to cancel jobs, and do all REQUIRED and OPTIONAL operations from RFC2911.

There is also a CUPS specific class, which performs CUPS specific
operations.

LIMITATIONS - SSL/TLS works, but the integrated http backend is not capable of "upgrade".

DOCUMENTATION Complete documentation is in "./documentation", or in ./html, depending you use tarball or Debian package.

ORIGIN It is inspired by "PrintSendLPR", by Mick Sear, but there is no more code of it in. If you search for a very basic print client, uses it :) PrintSendLPR is available at http://www.phpclasses.org (license: LGPL).

TESTS Usage examples are given in "TEST_PrintIPP.php".

You will find complete examples in ./examples or ./testfiles.

Test _data_ files are distributed under GPL, but the aboves
are under BSD License.

Enjoy !

Thomas Harding.

Bitdeli Badge

php-ipp's People

Contributors

bitdeli-chef avatar donis avatar lexbrugman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

php-ipp's Issues

Server runner http/1.1 404 not found

I am trying to access the printer attached on a remote network using port forwarding. I have setup the external port of IPP (631 and 9100) and tested by printing a page from mac book remotely and it worked fine.

Now, when i am trying to access the printer using this library in PHP i am getting the following error. Can anyone help me how to print remotely using IPP from this library? Your help will be much appreciated.

189592 262144 NULL
Warning: server responds http/1.1 404 not found in /Applications/AMPPS/www/test/lib/BasicIPP.php on line 1182
Job status: HTTP-ERROR-404-NOT_FOUND 469848 524288 END "SERVER" TEST

Can only print once before restarting CUPS

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?

Maintainable?

Are these codes are well maintained? it seems it is being uploaded 3 years and 2 years ago.

I hope it works in php 5.4.3.

Read returned data

Hi all,
I send a 3-bytes code to the printer via printJob() to get the current status of the printer.
How can I read the returned bytes ?

Thanks

_('string') syntax?

I was trying out this library under the cygwin environment with it's release php7.4 and it's choking up on a number of strings that seem to be in parenthesis following an underscore. I'm not sure what this syntax represents as I've never seen it before. (I'm aware some internationalization uses two underscores)

Call to undefined function PHPIPP_()

Short of re-compiling php from scratch, any hint as to what this syntax is or is doing so I can see if cygwin has any support built in for it?

SW

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.