Talking to a LaserJet with PHP
I recently found
this article on using C# to display messages on the LCD screens of LaserJet printers. The sample code compiled and ran cleanly with
mono, even though the version of mono that I was using was nearly a year old.
So anyway, I was playing around with it and mentioned it to a few people. One of them,
Kevin, decided to write an implementation in PHP. We hunted around with Google looking for a PCL refrence. This continued until we found a
decent one. Thus equipped, Kevin quickly wrote a command line PHP script to send messages to the printer. Shortly after that, we turned it into a web form. I polished up the HTML and took some pictures. Then we went back and added some validation code to ensure that only the LCD message was updated.
You can see the result
here.