dasein Posted November 24, 2008 Share Posted November 24, 2008 In trying to use printer_open() I'm getting Fatal error: Call to undefined function printer_open() in ..../homeprinter.php on line 12 In searching the forums, it looks like I need to first load a dll file. If I'm running off a hosting company's shared server, what can I do? I'm trying to run a php output with info from a mySQL database directly to a locally networked printer (I can hardwire it if need be). Do I have to ask the hosting company to reconfig my init file? Thanks. Link to comment https://forums.phpfreaks.com/topic/133956-solved-printing-off-a-remote-server-with-php/ Share on other sites More sharing options...
trq Posted November 24, 2008 Share Posted November 24, 2008 PHP cannot print anything locallly, it runs on the server. Link to comment https://forums.phpfreaks.com/topic/133956-solved-printing-off-a-remote-server-with-php/#findComment-697333 Share on other sites More sharing options...
dasein Posted November 24, 2008 Author Share Posted November 24, 2008 PHP cannot print anything locallly, it runs on the server. So do I have any options otherwise? Should I fopen() and print a .txt file, download that then print? Seems awfully clunky way of doing things though. Link to comment https://forums.phpfreaks.com/topic/133956-solved-printing-off-a-remote-server-with-php/#findComment-697334 Share on other sites More sharing options...
trq Posted November 24, 2008 Share Posted November 24, 2008 Your best off using a client side language (Javascript) to print. Link to comment https://forums.phpfreaks.com/topic/133956-solved-printing-off-a-remote-server-with-php/#findComment-697340 Share on other sites More sharing options...
dasein Posted November 24, 2008 Author Share Posted November 24, 2008 Thanks...I'll start over then. Link to comment https://forums.phpfreaks.com/topic/133956-solved-printing-off-a-remote-server-with-php/#findComment-697344 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.