PHP and Matalab communication

Discussion in 'PHP' started by makhan, Jun 17, 2007.

  1. #1
    Hi

    I want to pass some values from php to matlab, how can i make php communicate with matlab.
     
    makhan, Jun 17, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
  3. makhan

    makhan Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi nico_swd this is different problem than that one. That was a way I was trying to explore . Here I am asking is there some API or something thru which I can communicate to matlab.
     
    makhan, Jun 17, 2007 IP
  4. bibel

    bibel Active Member

    Messages:
    289
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #4
    create a matlab data file with php, and have matlab load that file when it runs the script
     
    bibel, Jun 17, 2007 IP
  5. makhan

    makhan Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thankss bible I am doing the same thing, problem is how i can make php to run the matlab script?? I have been using the exec,system and Shell_exec() functions but they aren't working. They apparently open a matlab.exe process as I see in the taskmanager. But browser keeps looding the php page.
     
    makhan, Jun 18, 2007 IP
  6. bibel

    bibel Active Member

    Messages:
    289
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #6
    I don't know what you are doing in that matlab script.
    Try this : go to your apache service properties window, and check that under the "Log On" tab "Allow service to interact with desktop" is checked.
    Then try loading the page again.
    If this doesn't work, you'll have to give me some more details in order to help you.
     
    bibel, Jun 18, 2007 IP