필터 지우기
필터 지우기

Errors when trying to launch MATLAB through PHP

조회 수: 1 (최근 30일)
Brian Carty
Brian Carty 2011년 9월 15일
What's being attempted: PHP, running under IIS, is calling an executable that runs a MATLAB program
Where it's breaking: In the executable (written in C++), the engOpen(NULL) command is not launching the MATLAB engine successfully
Confusion: When logging in as a normal user and manually running the executable, the MATLAB engine launches fine and the program runs successfully. However, when IIS tries to run it the executable fails halfway through, at the point where engOpen is called.
Relevant Code:
#include "engine.h"
Engine *ep = NULL;
if (!(ep = engOpen(NULL))) {
log_out << "Error opening engine." << endl;
log_out.close();
exit(-1);
}
Any help would be appreciated. We're currently unsure if the program is a MATLAB issue or a PHP/IIS issue, and could really use some pointers in the right direction.
  댓글 수: 3
Walter Roberson
Walter Roberson 2011년 9월 16일
You might need to run the "matlab /regserver" as administrator.
Brian Carty
Brian Carty 2011년 9월 19일
We've tried that and it hasn't resolved it.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Call MATLAB from C에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by