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....
% I`m just getting an empty variable and can`t 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) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to