C++ code is:
#include "stdafx.h"
int main(int argc, char* argv[])
{
printf("Hello World!\n");
return 0;
}
PHP code is:
<?
passthru("./phptest2.exe", $result);
for($i=0; $i<count($result); $i++)
{
echo $result[$i];
}
?>
Doesn't work. Any suggestions?
BTW: on a windows platform, but I'd imagine that doesn't make any difference, does it?