Printing pages with php
Posted: Sun Jun 22, 2003 7:05 am
OK here is the situation:
I need to print a page once and only once based on a field I stored in a mysql database which tells me whether a page has been printed yet. I do not want to have the printer dialog box open (so javascript is out) because you can print multiple copies with that box. So I figured I would use php which can send directly to the printer (I assume, I am still relatively new at php so bear with me).
Basically I have coupons that can be printed, but the customer doesn't want multiple coupons printed for each user.
Now here is my issue, I can get the php to send something to the printer but it just hangs there. Somebody told me to makesure my postscript was set up correctly (because I know the printer is), but I have no Idea how to do that or (embarassingly enough) even how to begin searching for that answer (and when I inquired further they just said "google
" like it was the simplest thing in the world). I need a step by step on how to print a file with php, from beginning to end. I couldn't find it anywhere. I am willing to pay someone for consulting (email or phone), I own the business and this is a portal site that I am setting up. I am not trying to solicit work here, I would (obviously) rather just find advice, but if this is a long and drawn out solution then consulting may be in order and I would inquire further off the forum to that end. So if you know how to print with php and feel you could help, please advise and I will contact you further if need be. Thanks
-Steve Hare
I need to print a page once and only once based on a field I stored in a mysql database which tells me whether a page has been printed yet. I do not want to have the printer dialog box open (so javascript is out) because you can print multiple copies with that box. So I figured I would use php which can send directly to the printer (I assume, I am still relatively new at php so bear with me).
Basically I have coupons that can be printed, but the customer doesn't want multiple coupons printed for each user.
Now here is my issue, I can get the php to send something to the printer but it just hangs there. Somebody told me to makesure my postscript was set up correctly (because I know the printer is), but I have no Idea how to do that or (embarassingly enough) even how to begin searching for that answer (and when I inquired further they just said "google
-Steve Hare