PHP Classes

I had to make a small change to work with the Zebra LP 2844

Recommend this page to a friend!

      PHP Print  >  All threads  >  I had to make a small change to work...  >  (Un) Subscribe thread alerts  
Subject:I had to make a small change to work...
Summary:Simple change to the LPR command
Messages:1
Author:Mark M
Date:2013-03-12 06:56:49
 

  1. I had to make a small change to work...   Reply   Report abuse  
Picture of Mark M Mark M - 2013-03-12 06:56:49
I used a packet sniffer to see why the LPR command worked from a Windows DOS prompt but not this library.

I don't know what the difference does, but I changed line 66 from:

$ctrl = "H".$server."\nPphp\nfdfA".$job.$server."\n";

to:

$ctrl = "H".$server."\nPphp\nldfA".$job.$server."\n";

Notice the "l" in the parameter area.

Thanks for all the help with this library!