Re: fopen, popen, fputs????

From: Date: Sun, 18 Mar 2001 23:57:43 +0000
Subject: Re: fopen, popen, fputs????
References: 1  Groups: php.gtk php.windows 
Request: Send a blank email to php-gtk+get-991@lists.php.net to get a copy of this message
I have managed to open the program I want to in the background. My php script opens the outside windows app. Then my prog. will continue to run. The only thing I need to do is send command (say: dir /p in the cmd.exe under windows 2000) so that it runs in the program I initially open in the background. My prog. I am writing actually opens a game server and I want to send commands to it at different times when needed. As of now the game server does open in the background but I can not issue it commands! Sorry if all my e-mails are getting annoying. I just have been stuck in this spot for a while:-) Thanks for all the help I have recieved so far though. It has helped GREATLY! ----- Original Message ----- From: "Steph" <Steph.Fox@btinternet.com> To: "Josh Seward" <jseward@frognet.net> Sent: Sunday, March 18, 2001 6:31 PM Subject: Re: [PHP-GTK] fopen, popen, fputs???? ps What *kind* of commands? What kind of app? - I've tested writing to Windows apps, most of them seem to work ok. - tell ppl what you're doing, there may be a workaround. I just went thru this forking biz with a fine-toothed comb, looks like it's only going to work when the initial process is recognised as a parent, ie within PHP-GTK. ----- Original Message ----- From: "Steph" <Steph.Fox@btinternet.com> To: "Josh Seward" <jseward@frognet.net> Sent: Sunday, March 18, 2001 10:55 PM Subject: Re: [PHP-GTK] fopen, popen, fputs???? Josh, we've a Windows issue extant .... All the clever ppl in Boston etc aware ... Have you managed to open a Windows exe while running a php script in the background, is the big question?! Fwding something someone sent me on forking but am not at all certain I understand it; maybe you will. Cheers anon, Steph ----- Original Message ----- From: "Josh Seward" <jseward@frognet.net> To: <php-windows@lists.php.net>; "php-gtk" <php-gtk@lists.php.net> Sent: Sunday, March 18, 2001 10:38 PM Subject: [PHP-GTK] fopen, popen, fputs???? Is anyone able to open the command.exe from a php script then issuse it commands via the php script. I have tried using popen and fopen to open cmd.exe and that works, but I cannot seem to issue comamnds to an outside program!!!! HELP PLEASE!!! Thank you, Josh Seward js389599@ohiou.edu

« previous php.gtk (#991) next »