Run terminal command line program

Discussion in 'PHP' started by Packy, Dec 23, 2007.

  1. #1
    Hello,

    is it possible with php script to run some program from command line?
    For example terminal command line.
     
    Packy, Dec 23, 2007 IP
  2. Gawk

    Gawk Peon

    Messages:
    427
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Gawk, Dec 23, 2007 IP
  3. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #3
    system
    exec
    shell_exec

    Are a few php commands that can do it. Keep in mind though most hosts disable these functions as they are pretty dangerous.
     
    InFloW, Dec 23, 2007 IP