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!
How to print from the Web Server (Apache)?
Moderator: General Moderators
It's certainly possible, http://ua2.php.net/manual/en/ref.printer.php (look for user comments there as well)The Ninja Space Goat wrote:I don't think that's possible.
if you want to print the documents server-side...Weirdan wrote:It's certainly possible, http://ua2.php.net/manual/en/ref.printer.php (look for user comments there as well)The Ninja Space Goat wrote:I don't think that's possible.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
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.