RE: [PHP-WIN] system()

From: Date: Thu, 01 Nov 2001 01:59:10 +0000
Subject: RE: [PHP-WIN] system()
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-10141@lists.php.net to get a copy of this message
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:r.fleming@totalise.co.uk] 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: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#10141) next »