Multi-line output from an exec()..

From: Date: Mon, 13 Dec 1999 14:32:16 +0000
Subject: Multi-line output from an exec()..
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-7849@lists.php.net to get a copy of this message
Ok.. currently I have two scripts that do some nice fancy things.. with reading Text files..next I need to search these files.. would something like.. exec("grep -i $string *"); .. work for this.. and how would I read the output and handle if there was NO output. ? for the other scripts I done a while statment on the file till it reached EOF.. would this be the case for an exec statement?

« previous php.version4 (#7849) next »