Re: why doesn´t exec("dir"); work ?

From: Date: Thu, 15 Nov 2001 19:42:53 +0000
Subject: Re: why doesn´t exec("dir"); work ?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-10439@lists.php.net to get a copy of this message
Shouldn´t it be: foreach( $dirContents as $dirEntry ) ? And another problem: I still get an error saying: "unable to fork [dir]" when I run this (I got that when I ran exec("dir") too) /Dan Chris Boget wrote: > > why can´t I run exec("dir"); ? > > What you want is: > > exec( "dir", $dirContents ); > foreach( $dirEntry as $dirContents ) { > echo $dirEntry; > > } > > I believe that'll work and do what you want... > > Chris

« previous php.windows (#10439) next »