读取条形码并通过 HTTP 将其发送到 php 脚本的守护进程
我期待构建一个原型,它应该完全无头运行,无需用户交互,系统应该能够启动条形码阅读器,通过互联网将其作为 file.php?code=var ... 发送到
php是最简单的方法吗?
我正在考虑:
- Windows控制台应用程序,某种 ping...
- linux-console 应用程序,某种 wget 或类似的东西
有没有人有更好的方法。
系统应该是完全自主的,插入电源,扫描条形码,发送代码,重复......
I am looking forward to build a prototype, which should be running completely headless and without user interaction, system should be able to start a barcode reader, send it over the internet to a php as file.php?code=var ...
Which is the simplest way to do this?
I am thinking off:
- windows-console app, some sort of
ping... - linux-console app, some sort of wget
or stuff like that
Does anyone have a better approach.
System should be completely autonomous, plug it in, scan barcode, send code, repeat...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的工作可以分为三个主要任务:
有很多不同的可能方法可以实现这一目标。但请始终记住,您不必重新发明轮子:
正如已经提到的:使用您擅长或感兴趣的编程语言。您提到目标系统将是 PHP 脚本,因此传输控制台应用程序也可以使用 PHP 实现。
有关更多详细信息,请参阅 PHP 手册 Readline-functiond。
Your job can be divided into three main tasks:
There are lot of different possible ways to achieve this. But keep always in mind, that you don't have to re-invent the wheel:
As already mentioned: Use the programming language you have good in command or you're curious about. You mentioned that the target system will be a PHP-Script, so the transfer console application could also be realized with PHP .
See PHP-Manual Readline-functiond for more details.