googlemike@hotpop.com (Google Mike) wrote in message news:<25d8d6a8.0406280730.79cd887c@posting.google. com>...
<snip>[color=blue][color=green][color=darkred]
> > > `echo "$sMsg" >> $sLogFile`;
> > > }[/color]
> >
> > Perhaps because of safe mode problem??
> > <http://in2.php.net/features.safe-mode>
> >
> > <OT>BTW, nice to you [see] again here:-) We missed your valuable
> > tutorials. Hope, the employment condition in US is ok now.</OT>[/color]
>
> Nice complement -- thanks.[/color]
Sorry for the late reply.
[color=blue]
> My promotion has kept me so busy I cannot
> reciprocate my knowledge as much as I had liked.[/color]
Nice to know about your promotion...
[color=blue]
> We found that if we allowed the "apache" user on RH9 Linux to have the
> power to do /bin/echo, using the sudo and /etc/sudoers technique, it
> permitted PHP web pages to do this. HOWEVER, we found a BUG where it
> would intermittently write either one or two messages for a given
> echo. HOWEVER, if we spawned with popen into a new thread, and had
> that thread do command-line PHP under root to write output to a text
> file, this would consistently work around the double-echo problem.
> Also, when we used normal file output commands with fwrite or fputs,
> under the apache web session, it would also write to the file in this
> double fashion, intermittently. Weird. We're also in a situation right
> now where we can't upgrade. So, anyway, this file output was just a
> stub to get us through a period of time before I would rewrite the
> code so that it sent an email, rather than stored data in a text file.
> We'll just work around the issue for now.[/color]
Sounds like a nice research. I'm not good in *nix and so couldn't
understand much. Anyway, nice to know you've sorted it out.
--
"Believe it or not, patriotism is one of the worst dividing forces"
Email: rrjanbiah-at-Y!com