Reply to PHP/Windows - how do I send file to my printer?

Your name:

Reply:


Posted by Michael Kilpatrick on 09/27/05 13:03

I'm writing a command-line PHP script that gets executed by a virtual
printer (a redirected port using the Redmon tool). The PHP modifies the
Postscript data before forwarding it to the real printer.

In this case the real printer is an HP LaserJet 5100 with a JetDirect
wireless server. My machine runs Windows XP. The printer, as well as
being accessible through the usual print methods within applications, is
available through its server at 192.168.1.4.

The problem is I just can't work out how I am supposed to send my
Postscript data to the printer from within the PHP script! What commands
do I use? I can't pipe data to a process like lpr, so what do I do? I
tried printer_open() and printer_write, but that just makes the printer
print the Postscript file as raw text rather than processing and
interpreting the Postscript code.

Any ideas, please?

Michael

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация