I'm trying to run an executable file made with PureBasic through PHP, but it does not work as it should. The result of the PB program should be displayed on a web page using PHP's passthru() function.
I built a very simple PB EXE (named console.exe, in my example, compiled as a console app) :
Code: Select all
If OpenConsole()
PrintN("Hello world !")
CloseConsole()
EndIf
End
Code: Select all
<?php
passthru("console.exe");
?>
I don't know what is wrong with my PB code, because both of the EXE files seems to react the same way when launched in a MS-DOS box... Any idea ? Thanks for your help !
Regards,
Nicolas
( Win XP Pro SP2 / PB 3.93 / EasyPHP 1.8 )