I'm using a windows machine. When I run this command in cmd it works fine.
C:\wamp\www\upload\cprogram.exe > output.txt
But when I write the same command in my php it shows
"> not recognised as an internal or external command"
My php code :
$exepath="C:\wamp\www\upload\cprogram.exe";
$outputpath="C:\wamp\www\upload\output.txt";
exec("$exepath > $outputpath");
Please tell me how can i send my executed C program output a file?