PHP Classes

JetDirect: Show a message in a printer LCD display

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-01-16 (9 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,202 All time: 3,012 This week: 1,116Up
Version License PHP version Categories  
jetdirect 1.0GNU General Publi...5Networking, PHP 5, Printing
Description Author  

This is a simple class that can be used to show a message in the LCD display of an HP printer.

It establishes a TCP socket connection to an HP printer with JetDirect support, and sends a control message that instructs the printer to show a given text in the LCD display.

Innovation Award  
PHP Programming Innovation award nominee
February 2007
Number 5

Prize: One book of choice by O'Reilly
Hewlett-Packard printers are very popular. Some models have an LCD display to show important messages to the printer users.

This class can communicate with an HP printer to update the messages presented in the LCD display.

With some creativity, it can be used in applications that display other useful message to the printer users, besides those related to the actual printing process.

Manuel Lemos
Picture of Zafar Iqbal
Name: Zafar Iqbal is available for providing paid consulting. Contact Zafar Iqbal .
Classes: 8 packages by
Country: Greece Greece
Age: 42
All time rank: 2772 in Greece Greece
Week rank: 77 Up1 in Greece Greece Up
Innovation award
Innovation award
Nominee: 2x

[Conversion of original C Code from 'Printer Hack 12/8/97']

This class provides a method to send a message string to HP printers LCD on the
network which support JetDirect.

Maybe it works on other printers on the network, maybe not.

Very easy to use - see example code for usage.

Tested on Linux - good luck on other platforms!

Have Fun ;)

  Files folder image Files  
File Role Description
Plain text file class-jetdirect.php Class Main Class File
Accessible without login Plain text file example.php Example Example Code
Accessible without login Plain text file readme.txt Data Readme File

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,202All time:3,012
 This week:0This week:1,116Up