Re: [PHP4BETA] Docs
| From: | php4 at linux dot daphnis dot com | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: [PHP4BETA] Docs | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-6808@lists.php.net to get a copy of this message | ||
If I enclose the variable in quotes ( urldecode($desc) )
changes to urldecode("$desc") all is good.
See: http://www.daphnis.com/php4test.php3
On Wed, 24 Nov 1999 php4@linux.daphnis.com wrote:
>
> I have php4.0b3 just made and installed with apache 1.3.9 - ssl - mod_perl
> and that is the result.
>
>
> On Tue, 23 Nov 1999, Rasmus Lerdorf wrote:
>
> > > No new commands, no explanations?
> >
> > Only a handful, and those are clearly marked in the docs.
> >
> > > Reason I ask...
> > > <?
> > > $desc="This+is+a+test";
> > > $sdesc = urldecode($desc)."of php4";
> > > echo "<img src=\"/header.php3?text=$desc&s=32& (wrap no space)
> > > font=Boston_Bold_Italic&frame=OFF&drop=ON&fcolor=186&bcolor=1\"
> > > alt=\"$sdesc\" border=\"0\">";
> > > ?>
> > >
> > > Results in:
> > > <img src="/header.php3?text=This is a test& (wrap no space)
> > > s=32&font=Boston_Bold_Italic&frame=OFF&drop=ON (wrap no space)
> > > &fcolor=186&bcolor=1" alt="This is a test of php4">
> > >
> > > The urldecode() seems to effect the original variable, stripping the ++s
> >
> > I think that was fixed in beta3
> >
> > -Rasmus
> >
>
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net
>