Re: Re: $_SELF[PHP_SELF] not working anymore

From: Date: Tue, 16 Sep 2003 16:26:34 +0000
Subject: Re: Re: $_SELF[PHP_SELF] not working anymore
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-162761@lists.php.net to get a copy of this message
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 */

« previous php.general (#162761) next »