Re: PHP & grep

From: Date: Tue, 25 Mar 2003 16:11:57 +0000
Subject: Re: PHP & grep
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-140971@lists.php.net to get a copy of this message
Chris, et al -- ..and then Chris Blake said... % % Greetings learned PHP(eople) Hiya! % % I`m using the following to strip values out of a file, however, the file % I`m accessing contains multiple instance of the search criteria, and I % only wanna return the first instance.... % Im just getting an empty variable and cant figure it out... % % $criteria = grep "Files :" logs/$file; Works for me. Are you running under safe mode, which will turn off backticks and shell_exec? HTH & HAND :-D -- David T-G * There is too much animal courage in (play) davidtg@justpickone.org * society and not sufficient moral courage. (work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

« previous php.general (#140971) next »