Answer the question
In order to leave comments, you need to log in
How to print directly from php?
How many did not fight, the question was not resolved.
You need to directly print some text, a web page with php.
In order not to torment the user with various Windows Print windows. (additional actions).
Maybe someone has achieved a solution directly from php?
A third-party program wrote us a daemon for printing, but like all Windows garbage, it sometimes hangs, sometimes it doesn’t print, then Windows will roll up a new KB and something will fly (well, as usual with everything Windows programs)
Maybe someone managed to use codes on port 9100 that send thread? Through socket. I saw it. I just didn't get to try it.
There are also port initialization codes, etc.
Answer the question
In order to leave comments, you need to log in
If you want to print from the server, that is, the printer is connected to the server, and judging by the fact that you write about the demon, the way it is, then fix the demon, stabilize it, do not update the drivers, or implement a network printer (they seem to be able to work stably not from under Windows).
If you want to print through the browser, then no, the browser should show you a window where you can click the button ( ok, cancel) . This is security (Imagine you open a website and it starts typing for you non-stop....)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question