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 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]