Re: here document
| From: | Jason Brooke | Date: | Thu, 02 Nov 2000 06:51:39 +0000 |
| Subject: | Re: here document | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-23333@lists.php.net to get a copy of this message | ||
Obviously that should be taken into account - but you wouldn't go as far
to say that short open tags might as well not be in Php at all, would
you?
I was simply pointing out that it doesn't necessarily have to be as
complicated as <?PHP echo $variable ?> as those couple of earlier emails
implied.
jason
> Yes, but <?= is nonportable. If you have total control over the
server,
> and know that you're never using PHP with XML, that's fine and you can
> enable it using short_open_tag. Otherwise, it's not available. For
> instance, I typically write code which could be executed on a client
> server over which I have no control. It *must* not rely on this sort
> of thing.
>
> That's why we always use the long <?php form in the manual; it's the
> only one (apart from <script language="php">) which is always
> guaranteed to work.
>
> Here docs also cannot be turned off.