Matlab refuses to work via php! Help!

조회 수: 7 (최근 30일)
Lost
Lost 2014년 3월 20일
답변: Lost 2014년 3월 20일
This is my Matlab file: tester = 2*3 save('c:\xampp\htdocs\temp\test_result.txt',... 'tester','-ASCII'); quit force
If I run the file in Matlab, great! test_result gets created no problem.
If I run the file via the command prompt: start /b matlab -nosplash -nodesktop -minimize -r Test Great! test_result gets created no problem.
If I run it through PHP.... Matlab loads in my task manager and just sits there. it doesn't do anything!
My apache service runes from the user MatlabTester, which has full permission to read/write/etc to the c:\xampp\htdocs\temp folder. Dunno why Matlab refuses to save the file when I run it through php!
Help me, please!

답변 (1개)

Lost
Lost 2014년 3월 20일
Sorry, my php code is actually:
<?php
exec("start /b matlab -nosplash -nodesktop -minimize -r Test");
?>
Forgot to put it in the Code tag.

카테고리

Help CenterFile Exchange에서 String Parsing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by