468,140 Members | 1,546 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,140 developers. It's quick & easy.

PHP exec() function

2
I am trying to call a Matlab file from PHP. I beleive that using exec() I can call the matlab file. But this does not work
I tried
exec('matlab -r sample');

I also tried the same with the system() , passthru() and still not working.
I tried to write a .bat file and put the command in .bat file and that did not work too.

Can anyone help me. This question is already present in the forum but no answers given.

I use a Vista 64 bit and I get no error.
May 14 '09 #1
3 4674
prabirchoudhury
162 100+
You can use the http://www.php.net/exec functions to run MatLab ..
May 14 '09 #2
dinek
2
I have mentioned in my post that exec() is not working. Your link points to man pages of exec()
May 14 '09 #3
code green
1,726 Expert 1GB
It's a tricky one is exec()
Try using the full path to the file.
Also pass in all parameters and echo them back out, along with the return
to give an idea of what is happening
May 15 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Jonathan | last post: by
5 posts views Thread by Nick Jacobson | last post: by
1 post views Thread by Andr? Roberge | last post: by
5 posts views Thread by TPJ | last post: by
23 posts views Thread by Maarten | last post: by
27 posts views Thread by didacticone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.