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
> "$_SERVER['PHP_SELF']";), and it doesn't work. I
> personally don't think PHP is confused about what I'm
> trying to do...

What does "and it doesn't work" actually mean? There's no output? There's an 
error message? The monitor explodes?

> Do you have any other idea? I already ran out of
> them... :-(

What version of PHP are you using? Have you turned on all error reporting? And 
what does 

  print_r($_SERVER);

give you?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
A program generator creates programs that are more ``buggy'' than the program 
generator. 
                -- The Last One's Law of Program Generators
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to