Re: cvs: pear /Text_Wiki/doc BBtest.txt test_Text_Wiki.php
| From: | Pierre-Alain Joye | Date: | Tue, 19 Jul 2005 10:22:45 +0000 |
| Subject: | Re: cvs: pear /Text_Wiki/doc BBtest.txt test_Text_Wiki.php | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-33150@lists.php.net to get a copy of this message | ||
On Tue, 19 Jul 2005 12:21:27 +0200
Martin Jansen <mj@php.net> wrote:
> On Tue Jul 19, 2005 at 11:3059AM +0200, Pierre-Alain Joye wrote:
> > On Tue, 19 Jul 2005 11:18:55 +0200
> > mj@php.net (Martin Jansen) wrote:
> > > I'd suggest something like the following:
> > >
> > > <?php
> > > $html = true;
> > > if (php_sapi_name() == "cli") {
> > > $html = false;
> > > }
> > > ?>
> >
> > Do you mean:
> > if (php_sapi_name == 'cli') {
> > $html = true;
> > } else {
> > $html = false;
> > }
>
> This is wrong. If the CLI SAPI is used, one certainly does not
> want to use HTML in the output.
yes, revert the true and false. But certainly not set it to true
and right after false, ok, pedantic-- for today.