OK it's not so important now, I've rewritten the C program to take the input as an argument and handle all the file opening.
system("parser filename.xyz"); now works fine. If anyone knows why system("parser filename.xyz"); doesn't work though I'd be interested to hear. anyone? Ross -----Original Message----- From: Ross Fleming [mailto:[EMAIL PROTECTED]] Sent: 01 November 2001 01:36 To: PHP Windows mailing list Subject: [PHP-WIN] system() Hi folks, I've written a C program that takes input from stdin that I want to run from a php script. Whenever I want to run the program I give the command parser.exe < filename.xyz and it runs the program fine. However, I want to do the same from inside a php script, no probs I thought, system("parser.exe < filename.xyz"); but the program that I call receives now input. (ie filename.xyz is not being fed to the program parser.exe I figure it must be possible, because if I create a .bat file (run.bat) with the line: parser.exe < filename.xyz in it and then run the batch file from php: system("run.bat"); then it works fine, but it echo's the batch commands to the page which I don't want. Has anyone any ideas? I can't for the life of me figure out how to get php to run the command parser.exe < filename.xyz !!!!!!! For simplicity at the moment, EVERYTHING is in htdocs. Using win98/apache1.3.20/PHP4 Any help appreciated!! Ross -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]