I got an example fortran executable that use two numbers as a parameters and add them and the result is printed in the command prompt
Right now im using a cgi perl script to print the result of the fortran executable in a webpage and it works great, but i would like to know if is it posible to get the result of my program into a variable and echo that variable.
At this moment im trying the following code
$salida = array();
exec("C:\xampp\cgi-bin\prueba6.exe 1000 1000",$salida);
but all the time i got the following error: "Notice: Undefined offset: 0 in C:\xampp\htdocs\prueba1.ph
p on line 5"
What im doing wrong???