RE: [PHP] PHP_SELF Undefined

2002-02-19 Thread Lars Torben Wilson
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

RE: [PHP] PHP_SELF Undefined

2002-02-19 Thread Ford, Mike [LSS]
> -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

Re: [PHP] PHP_SELF Undefined

2002-02-19 Thread Brad Hubbard
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

RE: [PHP] PHP_SELF Undefined

2002-02-18 Thread Niklas Lampén
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

Re: [PHP] PHP_SELF Undefined

2002-02-18 Thread Greg Donald
> 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.

Re: [PHP] PHP_SELF Undefined

2002-02-18 Thread Matt
> 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

Re: [PHP] PHP_SELF Undefined

2002-02-18 Thread Erik Price
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 {$_

Re: [PHP] PHP_SELF Undefined

2002-02-18 Thread Lars Torben Wilson
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/

Re: [PHP] PHP_SELF Undefined

2002-02-18 Thread Matt
> $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

FW: [PHP] PHP_SELF Undefined

2002-02-18 Thread SHEETS,JASON (Non-HP-Boise,ex1)
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

Re: [PHP] PHP_SELF Undefined

2002-02-18 Thread Lars Torben Wilson
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

Re: [PHP] PHP_SELF Undefined

2002-02-18 Thread Erik Price
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

[PHP] PHP_SELF Undefined

2002-02-18 Thread Narvaez, Teresa
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: "; ?>