Matlab refuses to work via php! Help!

6 views (last 30 days)
Lost
Lost on 20 Mar 2014
Answered: Lost on 20 Mar 2014
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!

Answers (1)

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

Tags

Community Treasure Hunt

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

Start Hunting!