Re: [PHP4BETA] --enable-trans-sid
| From: | Sascha Schumann | Date: | Tue, 09 Nov 1999 12:05:25 +0000 |
| Subject: | Re: [PHP4BETA] --enable-trans-sid | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-5987@lists.php.net to get a copy of this message | ||
On Tue, Nov 09, 1999 at 07:49:33PM +1100, Matt Allen wrote:
> Hi Guys,
>
> When i compile with "--enable-trans-sid" it puts it in a weird spot.
> here is the PHP code and the outputted HTML:
> CODE:
>
> <a href="<?=$PHP_SELF;?>?func=add&art=a">add a</a><br>
> <a href="<?=$PHP_SELF;?>?func=add&art=b">add
> b</a><br><br>
>
> HTML:
>
> <a
>
> href="?PHPSESSID=2a214918e6ff024d8a39284f7c9e4e0a"/index.php?func=add&art=a">add
> a</a><br>
> <a
>
> href="?PHPSESSID=2a214918e6ff024d8a39284f7c9e4e0a"/index.php?func=add&art=b">add
> b</a><br><br>
>
> Any Ideas?
The conversion process works on the chunks of data you give
it. It does no buffering by itself. In your example, the
first line consists of three chunks:
<a href="
/index.php
?func=add&art=a">add a</a><br>
The scanner has no concept of preserving the state between
chunks. So, you should not write
<a href="<?=$PHP_SELF?>?foobar">
but
echo "<a href=\"$PHP_SELF?foobar\">";
If your clients conform to the URI definition in RFC 2068,
you can shorten this to
<a href="?foobar">
Unfortunately, Netscape does not understand that.
--
Regards,
Sascha Schumann
Consultant