Re: [PHP4BETA] <?=
| From: | Monte Ohrt | Date: | Fri, 11 Jun 1999 18:39:26 +0000 |
| Subject: | Re: [PHP4BETA] <?= | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-1506@lists.php.net to get a copy of this message | ||
Zeev Suraski wrote:
>
> On Fri, 11 Jun 1999, Rasmus Lerdorf wrote:
>
> > > > or something similar. Assuming of course that <?= would work on defines,
> > > > but I don't see why it wouldn't.
> > >
> > > I'm not following you here - <?= works on constants, but how does that
> > > help us?
> >
> > The session module could do something like:
> >
> > define("SESS","session=".$session_string);
>
> Ah, ok. So you mean we'd tell people to write URLs like this:
>
> <a
> href="http://foo.bar/foo.php?<?=SESS?>&...">
>
> Sounds good to me.
>
> Zeev
>
I like the idea of a defined constant:
$sess_url = $SCRIPT_NAME."/?".SESS;
Monte