[help] php exec() ?

Started on the old forum in June 2012 · view the original in the archive · old links redirect here

No replies · 282 views · started 14 years ago · 1 min read

12345xmen Developer · 239 posts #1

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
    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)

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close