PHP exec() function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dinek
    New Member
    • May 2009
    • 2

    PHP exec() function

    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.
  • prabirchoudhury
    New Member
    • May 2009
    • 162

    #2
    You can use the http://www.php.net/exec functions to run MatLab ..

    Comment

    • dinek
      New Member
      • May 2009
      • 2

      #3
      exec() not working

      I have mentioned in my post that exec() is not working. Your link points to man pages of exec()

      Comment

      • code green
        Recognized Expert Top Contributor
        • Mar 2007
        • 1726

        #4
        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

        Comment

        Working...