I am using a barcode reader connected to a raspberrypi with python script to read barcodes and send them to be processed in php through including the ip of file.php in python.
my python script is on a different physical machine than the PHP script.
I want to start-up the python script from the php code to enable users to scan barcodes automatically.
**I am new to python and have not used it before.
You must run your Python as daemon and contact Python via PHP using a socket or a REST call
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.