How to print from the Web Server (Apache)?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
gutoluz
Forum Newbie
Posts: 1
Joined: Fri Aug 11, 2006 1:33 pm

How to print from the Web Server (Apache)?

Post 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!
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

yes... in my project, we finally came to the conclusion that there was nothing we could do about it.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post 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)
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Weirdan wrote:
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)
if you want to print the documents server-side...
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
Post Reply