Page 1 of 1
How to print from the Web Server (Apache)?
Posted: Fri Aug 11, 2006 1:50 pm
by gutoluz
I need to print a document created within a PHP page. Due to a user restriction (the document must be printed only once), I can't send the document to the user's browser. Instead, I need to allocate the printer and send the document directly to it from the PHP page. How can I do this?
Thanks!
Posted: Fri Aug 11, 2006 1:56 pm
by Luke
I don't think that's possible. I had a project similar to that... where it was a document we really didn't want the user to be able to print 100 of and send everywhere. I think the only way to do that is to actually mail it to them.
Posted: Fri Aug 11, 2006 2:19 pm
by feyd
What's to stop them from, say photocopying it, or scanning it and making copies from there? Sure, it's more work for the user, but if they want it, they'll do it.
Posted: Fri Aug 11, 2006 2:39 pm
by Luke
yes... in my project, we finally came to the conclusion that there was nothing we could do about it.
Posted: Fri Aug 11, 2006 3:02 pm
by Weirdan
The Ninja Space Goat wrote:I don't think that's possible.
It's certainly possible,
http://ua2.php.net/manual/en/ref.printer.php (look for user comments there as well)
Posted: Fri Aug 11, 2006 3:54 pm
by volka
if you want to print the documents server-side...
Posted: Fri Aug 11, 2006 4:18 pm
by RobertGonzalez
You cannot restrict the number of prints a user can make on their side of the interaction. Not even Paypal or the Post Office haves developed that with their printable postage. If a user wants to make many prints of the same thing on their side, they are going to, even if, like Feyd said, they print out 1 and duplicate it by other means.