Hi all,
I earlier posted a query about what the best printing technique would be but now I really have something of concern.
I may need to print on a regular basis some 1000+ reports (billing statements) from data stored in a PostgreSQL database. I figured perhaps a background process on the database server can do this, but what would be the best way of doing it with PHP?
I know I can open a pipe to groff or lpr from a PHP script with popen() but if such a large batch of reports is to be printed, the user may just want to log off from the browser.
so how can I best spool a large print job based on PostgreSQL without having to tie up the user or the browser?
I earlier posted a query about what the best printing technique would be but now I really have something of concern.
I may need to print on a regular basis some 1000+ reports (billing statements) from data stored in a PostgreSQL database. I figured perhaps a background process on the database server can do this, but what would be the best way of doing it with PHP?
I know I can open a pipe to groff or lpr from a PHP script with popen() but if such a large batch of reports is to be printed, the user may just want to log off from the browser.
so how can I best spool a large print job based on PostgreSQL without having to tie up the user or the browser?