Hi there cath2010,
Welcome to the forum!
Looks like you are doing a "hello world" type of thing using php with C to output the contents of an exe file (which is a dangerous thing IMO)
You say that you have the file in the same directory as the web page, if so, instead of just asking for the file directly, check to see if it exists first before calling it:-
I am just using ./ to say from the current working directory
<?php
error_reporting(E_ALL);
if(file_exists("./TestWebPage.exe")){
//print system('./TestWebPage.exe');//You may need to 'print' the contents of the file
system('./TestWebPage.exe');
exit;
}else{
echo "No file there to run!";
exit;
}
?>
Try both methods there, as you may need to print the contents from the exe file, though I may be wrong, just uncomment/comment as necessary.
As for the issue with the web server, make sure that the hosting server allows you to run .exe files from your script, and may be a good idea to include the entire file path.
Also, for any issues that php may be flagging up, it may be wise to put error_reporting(E_ALL); right under the opening <?php just to see if there is anything going on.
Personally though, this may just be a path issue, locally you can tend to get away with using relative type urls, but on a server, it is best to use absolute urls so that you can guarantee the file is there to open.
Other than that, I'm not sure.
Have a read of this too, good tips to follow :)
[
uk3.php.net ]
Hope that helps a little anyway,
[EDIT]Hi there Demaestro, I think as the aim is similar to using a dll to process data, though I could be wrong.
Cheers,
MRb