Re: Transparent session handling
| From: | Ben Peter | Date: | Tue, 13 Jun 2000 07:26:04 +0000 |
| Subject: | Re: Transparent session handling | ||
| References: | 1 | Groups: | php.dev php.general |
| Request: | Send a blank email to php-general+get-1695@lists.php.net to get a copy of this message | ||
Sascha,
is this something that may be 'fixed', i.e. is it regarded a bug, or will
session handling users have to live with it?
In this case, the easiest solution might be to wrap output of critical
parts in functions that make sure url_adapt sees it as one line, but these
should probably be user functions.
Ben
>
> The problem here is that the URL scanner is context free.
>
> In non-buffered mode, PHP outputs data as often as possible.
> To a human, this string looks like some HTML with PHP
> embedded:
>
> <a href="<? print_url(); ?>">
>
> But the URL scanner will be triggered three times:
>
> <a href="
>
> http://someurl/doc.php
>
> ">
>
> The fix for this is to make the URL scanner combine URLs. One
> workaround is to enable output buffering or to write
> references this way:
>
> echo "<a href=\"".get_url()."\">";
>
> - Sascha
>
>
>
--
Benjamin Peter
Zentropy Partners GmbH
ph. +49-69-96244-395
pax +49-69-96244-244
http://www.zentropypartners.com
"Integrate the building and marketing of digital businesses"