简体   繁体   中英

Run Python script at start-up from php when python script is stored on a raspberrypi not in the same computer I have my php script on?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM