I would like to be able to click on a link that dynamically generates a page (which is already written, and works fine) and instead of going to standard output, I would like to redirect the output to a file.
After the file is created, which will be an HTML file, I would then like to do further actions to that file from within PHP, using the system(); functions to convert the file to ps, using 'html2ps' and then using a system(); command to print the file, using 'lpr'
So basically, when the user clicks on the link, the file will be printed to a printer, using the system(); functions of the OS, instead of having the output go to the screen.
My only search has lead me to this page for PHP output: http://www.php.net/manual/en/ref.outcontrol.php
but, I was wondering if someone had a more concrete example of what I am trying to do.
Many thanks,
Bruce