On Tue, 2002-02-19 at 05:14, Ford, Mike [LSS] wrote:
> > -Original Message-
> > From: Matt [mailto:[EMAIL PROTECTED]]
> > Sent: 18 February 2002 23:30
> > To: Lars Torben Wilson
> >
> > > $foo = "This page is $_SERVER[PHP_SELF]";
[snip]
> > Can you expand on why the first option isn't
> -Original Message-
> From: Matt [mailto:[EMAIL PROTECTED]]
> Sent: 18 February 2002 23:30
> To: Lars Torben Wilson
>
> > $foo = "This page is $_SERVER[PHP_SELF]";
> >
> > Or, better:
> >
> > $foo = "This page is {$_SERVER['PHP_SELF']}";
> >
> > You do have to concat to do this in si
On Tue, 19 Feb 2002 09:50, Narvaez, Teresa did align ASCII characters thusly:
> When I execute the code below, why is PHP_SELF undefined? I will appretiate
> any help on this. I can get its value by:
> echo $_SERVER["PHP_SELF"];Thanks in advance! -Teresa
>
>
>
>
> Feedback
>
>
> $for
PROTECTED]
Subject: Re: [PHP] PHP_SELF Undefined
> When I execute the code below, why is PHP_SELF undefined? I will
appretiate
> any help on this. I can get its value by:
> echo $_SERVER["PHP_SELF"];Thanks in advance! -Teresa
Is your PHP install >= version 4.1.0 ?
Yo
> When I execute the code below, why is PHP_SELF undefined? I will
appretiate
> any help on this. I can get its value by:
> echo $_SERVER["PHP_SELF"];Thanks in advance! -Teresa
Is your PHP install >= version 4.1.0 ?
You can test with a call to phpinfo();
If your version is less than 4.
> The other reason is that the parser needs help resolving ambiguity with
> more complex expressions inside strings. If you use this syntax all the
> time, you won't get bitten in the butt later.
I've used the ${$var} to resolve the ambiguity of variable variables, but I
wasn't aware that if coul
On Monday, February 18, 2002, at 06:14 PM, Lars Torben Wilson wrote:
> Sorry, but I do have to correct you here--this isn't true. ;) In double-
> quoted strings and heredocs, you can do the following:
>
> $foo = "This page is $_SERVER[PHP_SELF]";
>
> Or, better:
>
> $foo = "This page is {$_
On Mon, 2002-02-18 at 15:29, Matt wrote:
> > $foo = "This page is $_SERVER[PHP_SELF]";
> >
> > Or, better:
> >
> > $foo = "This page is {$_SERVER['PHP_SELF']}";
> >
> > You do have to concat to do this in single-quoted (noninterpolated)
> > strings, though.
> >
> >
> http://www.php.net/manual/
> $foo = "This page is $_SERVER[PHP_SELF]";
>
> Or, better:
>
> $foo = "This page is {$_SERVER['PHP_SELF']}";
>
> You do have to concat to do this in single-quoted (noninterpolated)
> strings, though.
>
>
http://www.php.net/manual/en/language.types.string.php#language.types.string
.parsing
Ca
PHP just to echo your variable.
Example:
Feedback
Your Name:
Your E-Mail Address:
Your Message:
mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 3:51 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP_SELF Undefined
When I execute the code below, why is
On Mon, 2002-02-18 at 15:02, Erik Price wrote:
>
> On Monday, February 18, 2002, at 05:50 PM, Narvaez, Teresa wrote:
>
> > When I execute the code below, why is PHP_SELF undefined? I will
> > appretiate
> > any help on this. I can get its value by:
> > echo $_SERVER["PHP_SELF"];Thanks
On Monday, February 18, 2002, at 05:50 PM, Narvaez, Teresa wrote:
> When I execute the code below, why is PHP_SELF undefined? I will
> appretiate
> any help on this. I can get its value by:
> echo $_SERVER["PHP_SELF"];Thanks in advance! -Teresa
>
>
>
>
> Feedback
>
>
> $form_block
When I execute the code below, why is PHP_SELF undefined? I will appretiate
any help on this. I can get its value by:
echo $_SERVER["PHP_SELF"];Thanks in advance! -Teresa
Feedback
Your Name:
Your E-Mail Address:
Your Message:
";
?>
13 matches
Mail list logo