Re: R: [PHP-WIN] PHP, apache, function exec(), stdin and pgp

From: Date: Fri, 04 Aug 2000 15:21:30 +0000
Subject: Re: R: [PHP-WIN] PHP, apache, function exec(), stdin and pgp
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-1556@lists.php.net to get a copy of this message
Giuse: Would it be possible for you to post or send us your Centura program? I think we can try: exec ("Run $your_Exe_File $yourParams"); I don't have pgp installed on my machine to test it. Alain > hello Petr, > your question is very interesting but I have only some advices to give you.. > are you sure your code is exactly as you stated before? > where did you find the syntax > $fstdi=fopen("php://stdin"); ? > (it lacks at least the opening mode parameter..) > > I think the problem maybe that the exec() function waits until the > application ends, so you can't then write to stdin (if even it's possible..? > is there a "global" standard input on windows or many application-local > stdin-s? I don't know..) > > I made some tests and found a way to exec() an application from php and > avoid waiting its end (wrote a simple program with Centura TDeveloper), but > still couldn't write to stdin.. > > > hope this helps, > bye, > Giuse > > > PS > when you execute the script, did you get the pgpe command (DOS like) window? > if not surely you can't write to its stdin.. > > PS2 > some other tests: it seems I can only exec() windows-GUI-interface > application ; > the only not-GUI app. that works is cmd.exe (windows shell) via my Centura > program , but didn't get to pass an argument to it and make it exec another > app. .. > > PS3 > I'm on win NT 4 sp5 , apache 1.3.12, php4.0.0 & 4.0.1pl2 > > > > >

« previous php.windows (#1556) next »