[help] php exec() ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [help] php exec() ?

    Hi,my frend was using exec() to recive output through a C++ made exe programme every thing works fine it gives me the required output but he dont know how to make input to that programme via php exec() here is my scrpt tell me how to make input to that exe programme



    PHP Code:
    <?php
        exec
    ("helloworld.exe",$output,$return);
        echo 
    "The command returned $return, and output:\n";
        echo 
    "<b>here</b><pre>";
        echo 
    "<pre>";
        
    var_dump($output);
        echo 
    "</pre>";
     
    ?>
     
    //output
    The command returned 0, and output: here
     
    array
      0 => string 'hello world' (length=11)
Working...
X