Re: cvs: pear /Text_Wiki/doc BBtest.txt test_Text_Wiki.php
| From: | Martin Jansen | Date: | Tue, 19 Jul 2005 10:21:27 +0000 |
| Subject: | Re: cvs: pear /Text_Wiki/doc BBtest.txt test_Text_Wiki.php | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-33149@lists.php.net to get a copy of this message | ||
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.
- Martin