Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printing documents (to a printer)

Status
Not open for further replies.

aas1611

Programmer
Dec 14, 2001
184
DE
Hi,

Is there a way to print documents (send job to printer) from PHP?

The file names are in the database and the files are saved in a particular directory. To be more clearly, the database looks more less like this:

filename send_method
-------- -----------
a.pdf email
b.pdf printer
c.pdf printer
d.pdf email

only when send_method = 'printer', then they are sent to printer.

If PHP can't do this, which can?
 
You have to understand though that PHP runs on the server, so it will print on the printer server. Not on the client. If you want to print on the client server you could only do it via client side scripting.
 
OK, guys,

thanks for the hint. I'll work on it!
 
Only for your information, I've solved it with a batch program from the server, I think it's faster. But anyway, it works.
 
As a side note, with ineternet-printing, all is no longer as it seems, provided the client can pass the internet printer address to the script.

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top