On Tue, Sep 16, 2003 at 03:30:39PM +, Curt Zirzow wrote:
: * Thus wrote Maria Garcia Suarez ([EMAIL PROTECTED]):
: > --- Javier Tacon <[EMAIL PROTECTED]> wrote:
: >
: > > Try with $_SERVER["PHP_SELF"]
: >
: > Then I get:
: >
: > Parse error: parse error, unexpected
: > T_ENCAPSED_AND_WHITESP
Hi there!
First I would like to send a big THANKS to all the
people who tried to help me.
And after that, the solution It was a problem of
the server (Xitami), browsing around the PHP.net
server I found the following comment:
---CUT---
Using the CGI (c:\php[version]\php.exe) with Xitami
sin
On Tuesday 16 September 2003 23:45, Maria Garcia Suarez wrote:
> $currentAddress="{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}";
>
> > php wont be so confused as what you're trying to do.
Does the above not work?
> I also tried with $_SERVER[PHP_SELF] alone (echo
> "$_SERVER[PHP_SELF]"; or echo
Hi there!
First, thanks for your reply...
--- Curt Zirzow <[EMAIL PROTECTED]> wrote:
> * Thus wrote Maria Garcia Suarez
> ([EMAIL PROTECTED]):
> > > Try with $_SERVER["PHP_SELF"]
> > Then I get:
> > Parse error: parse error, unexpected
> > T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or
> > T_VA
* Thus wrote Maria Garcia Suarez ([EMAIL PROTECTED]):
> Hi there!
>
> --- Javier Tacon <[EMAIL PROTECTED]> wrote:
>
> > Try with $_SERVER["PHP_SELF"]
>
> Then I get:
>
> Parse error: parse error, unexpected
> T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or
> T_VARIABLE or T_NUM_STRING in
>
>
Hi there!
--- Javier Tacon <[EMAIL PROTECTED]> wrote:
> Try with $_SERVER["PHP_SELF"]
Then I get:
Parse error: parse error, unexpected
T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or
T_VARIABLE or T_NUM_STRING in
This is how I use it:
$currentAddress="$_SERVER[HTTP_HOST]$_SERVER[PHP_SELF]";
6 matches
Mail list logo