RE: [PHP] Exec() in Windows NT
| From: | James Moore | Date: | Tue, 29 Aug 2000 17:09:32 +0000 |
| Subject: | RE: [PHP] Exec() in Windows NT | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14181@lists.php.net to get a copy of this message | ||
> > $fp = fopen("php://stdin",r);
> > while(!feof($fp)) {
> > echo fgets($fp);
> > }
>
> I am having problems getting this to work without going into an infinite
> loop, but I will keep looking into this and will post my results.
Hmmm, Not sure about this.. sounds like some starge behaviour, Ill do some
testing..
> > or exec("progname.exe >file");
> > then readin file and process it.
>
> This actually did not work (this was one of the first things that I tried)
> because the executable does not generate any output when called from PHP.
> This is what got me thinking about the IIS configuration: why is
> all output
> being squelched?
This might well be some security problem with ISAPI which PHP cannot
override, Once again Ill test this and see what happens with the latest CVS.
> Do you have a working example of using an exec under Windows?
Nope, sorry.. :(
James