Justtechjobs.com Find a programming school near you






Online Campus Both


php4-beta | 199912

[PHP4BETA] Multi-line output from an exec().. From: Stuart Harris (stuart <email protected>)
Date: 12/13/99

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?

-- 
PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
To unsubscribe, e-mail: php4beta-unsubscribe <email protected>
For additional commands, e-mail: php4beta-help <email protected>
To contact the list administrators, e-mail: php4beta-admin <email protected>