Printing through PHP on a UNIX system
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Printing through PHP on a UNIX system




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Printing through php on a UNIX system  
cbennett@napanet.net


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-22-05 01:49 AM

Hello, I'm a *novice* at both using php and UNIX, and came across a
problem while trying to modify an ex-coworkers php code for printing.

The original script sent one huge print job to our printing server,
which worked fine since we weren't printing duplex. We'd like to now
split the jobs up and send them individually, which we easily achieved
using a while loop to send each job.

The problem is that since the printer is in duplex mode now, if you
have two jobs which are 1 sheet each they will print them each on one
side of the paper. Obviously not a good thing for two seperate bills.

My question is that since we're using the system command lp to print
the jobs, is there a variable or command we can test that will tell us
if the printer is free of jobs?

There might be a php function that will do this which is why I will
mirror this message in a php group, but in the mean time I would like
to know if there was a UNIX specific solution to this problem.

Best regards,

Chris Bennett, NapaNet






[ Post a follow-up to this message ]



    Re: Printing through php on a UNIX system  
Rich Teer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-22-05 01:49 AM

On Wed, 21 Sep 2005 cbennett@napanet.net wrote:

> The original script sent one huge print job to our printing server,
> which worked fine since we weren't printing duplex. We'd like to now
> split the jobs up and send them individually, which we easily achieved
> using a while loop to send each job.
>
> The problem is that since the printer is in duplex mode now, if you
> have two jobs which are 1 sheet each they will print them each on one
> side of the paper. Obviously not a good thing for two seperate bills.

Indeed!  I'd create two printer queues: one for duplex printing, and
the other for single sided.  Send your print jobs to the single-sided
queue and you should be OK.

--
Rich Teer, SCNA, SCSA, OpenSolaris CAB member

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-group.com/rich





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:16 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register