I have a PHP web application which generates HTML pages meant to be printed through a single printer and from a specific tray.
Currently the users have to print these pages through the browser and go through printer settings to select the tray.
Is there any way that through PHP the pages could be printed as soon as they are generated, and from the desired tray? Automatically without the user having to do anything.
printer_open('\\xx.xx.x.xx\_printer_name_');
The above results in an error 'Call to undefined function printer_open()'