Re: PHP & grep

From: Date: Wed, 26 Mar 2003 12:54:48 +0000
Subject: Re: PHP & grep
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-141080@lists.php.net to get a copy of this message
Ok...I checked php.ini and I`m not running safe mode...... I`ll take your advice and use fopen.... Thanks for the help..... On Wed, 2003-03-26 at 14:31, David T-G wrote: > Chris -- > > Don't reply just to me; you're much more likely to get useful answers, or > even answers at all, if you keep it on the mailing list! > > ...and then Chris Blake said... > % > % Howdy David, > > Hiya! > > > % > % Thanks for the reply.... > > Sure thing :-) > > > % > % I`m totally new to this PHP stuff....define "running in safe mode". > > I don't know much about it, since my server runs without it. It's not a > bad idea, though. It just tells php to be more cautious, which in turns > sometimes prevents you from doing what you think you want to do. > > Check the manual; it's where I saw the comment that safe mode disables > backticks (and, therefore, shell_exec). You can still make a system() > call, though. > > Meanwhile, why bother to use a call to grep at all? Just fopen the file > and match on its contents... > > > % > % The only safe mode I knew of was under Windows....I`ve since converted > > Heh :-) > > > % to Linux....is this a setting I need to change in php.ini ? > > Yep. Look for > > safe_mode = ... > > to see how you're set. > > > % > % Thanks for the help... > > Sure thing! > > > 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! > -- Chris Blake Office : (011) 782-0840 Cell : 083 985 0379 A chicken is the eggs way of producing more eggs.

« previous php.general (#141080) next »