how to run python api from php
조회 수: 2 (최근 30일)
이전 댓글 표시
I'm using a PHP to call a python script that uses the matlab API. The engine.start_matlab() function won't execute.
I found this and was wondering if it means that my computer is considered a remote machine. I'm doing all of this on localhost, so I wouldn't have thought that this would be a problem.
댓글 수: 0
답변 (1개)
Bo Li
2016년 9월 12일
What is the error message? Which platform? Does it work outside of PHP?
If it works outside of PHP, the issue can be related to the conflict of libraries used by PHP and Python Engine.
댓글 수: 2
Bo Li
2016년 9월 13일
To find more details about this failure, you might need to check the log of the web server that invokes this PHP script.
참고 항목
카테고리
Help Center 및 File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!