Would it be possible to create a php script on a local server that could handle printing?
I'm not sure it's possible, but am curious....
I'm thinking... create a local printer, use custom port TCP/IP port that points to a PHP script that processes the job. The port protocol can be LPR and using XPS driver.
I'm guessing that with this config, if I print, something will be sent to the php script. But how would I know? I can't wrap my head around how this data would come to the script. I'm used to thinking in terms of
$_POST... Does it write to a spool file? What happens? How can I even print out the data to the screen or something to see what's happening?
There's this phpclass class but I'm unsure if it's even barking up the right ally.