hihi,

can someone please tell me how do i print directly to a printer without user's intervention ( without the need to view the select printer menu )

javascript can't let us access the printer directly.

I've read and followed what is says on the PHP official site
http://my.php.net/manual/en/ref.printer.php
but can't get it to work.

I unquote php_printer.dll in the php.ini file, downloaded the php_printer.dll file into the extensions folder and win32 folder. Tested using this
$handle = printer_open();

Kept getting the error, undefined function printer_open().

thanks in advance.

Member Avatar for LastMitch

@chunguy

can someone please tell me how do i print directly to a printer without user's intervention ( without the need to view the select printer menu )

This is question is not related to PHP at all.

I'm very surprise that noone told you to post this question in the Hardware & Software section 8 years ago.

I know it's 8 years too late.

But to answer your question.

You need to create .bat file and put that file in your Window Server and then you create a shortcut for all your computers to access it, then when someone want to print something they can click on that shortcut and it ping the printer and that will print out stuff from each computer.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.