Hi everyone,i have database in mysql and i need to create php script toget data from database and after it i want to call this script in python.How can i do it?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
you can run things at the command line if you can create a custom module.
at the top of your python file import subprocess
and then to run the php script
cmd = "php and your file name"
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
google "python subprocess" to get more details on what is necessary.
If you want to communicate OpenERP with PHP you can do it through XML-RPC, consuming web service from php. You can search the official documentation of OpenERP XML-RPC or google "OpenERP 7.0 connection with PHP using XML-RPC". I hope help you.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký