execute an exe file

Discussion in 'PHP' started by mehdiali, May 10, 2008.

  1. #1
    Hi every one
    i have 2 questions :
    1. can i run an exe file on the server(suppose my server is windows)
    like this:

    <?php
    execute("/myPrograms/file.exe",$output)
    // do somthing with output
    ?>

    2.if yes, plz mention appropriate functions.
    just notify my file.exe has output and i want to get it.
    thank you in addvence
     
    mehdiali, May 10, 2008 IP
  2. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #2
    You can use PHP's system() and exec() functions for this purpose.
     
    mwasif, May 10, 2008 IP
  3. mehdiali

    mehdiali Peon

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thank you for your reply.
     
    mehdiali, May 11, 2008 IP