Answer the question
In order to leave comments, you need to log in
Portable printer + people base?
Good evening.
There is such a printer . There is a base of people in MySql.
Task: Using the web interface, find a person, click on the button next to him. Perform an update to the database. Print information about a person. All in one click.
There is nothing complicated until the stage “Print information about a person”. I haven't even played with the printer, to be honest. Tell me what to do?
Answer the question
In order to leave comments, you need to log in
What kind of operating system?
In Linux, this is done in an elementary way. In the case of low load and no requirement for burglary resistance, it is enough to run a CGI script on the bash, which, according to a POST or GET request, will pull out the necessary information from mysql, process it (say, compose a document with latex or ghostscript, or even immediately lpr will assemble a ps-file from plain-text) and print (dvips, lp/lpr ...).
UPD: looked what kind of printer. So it’s better to first lay out the template with latex, it will be more beautiful than printing plain text.
Play around with the printer. I don’t know how things are now with this, once it was possible to send a text file to the port of the printer and it would print it. That is, you need to learn how to print a text file from the command line, and call this command from PHP. Try googling "how to print text file from command line windows (linux)"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question