[PHP] DOCUMENT_ROOT disappeared on me!

2002-07-02 Thread David E. Weekly

All,

I upgraded from PHP 4.1.2 to 4.2.1 today along with revving Apache to 1.3.26
from 1.3.22, and, woe is me, my $DOCUMENT_ROOT now evaluates to "" on all of
my PHP pages!

phpinfo() shows "DOCUMENT_ROOT" being set correctly under the Apache
variables category. I tried several variations, including setting "global
$DOCUMENT_ROOT:" and "$ENV{DOCUMENT_ROOT}" and "$GLOBALS["DOCUMENT_ROOT"]"
and so forth, but all to no avail. Good 'ol $DOCUMENT_ROOT seems quite gone,
and I wasn't able to find mentions of this happening to others on the 'Net.
Any pointers?

-david



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




Re: [PHP] DOCUMENT_ROOT disappeared on me!

2002-07-02 Thread David E. Weekly

Kevin,

After many tries, that is what indeed worked, but I'm a little irked, since
shouldn't it have been that setting register_global to "On" in my php.ini
would re-enable these base globals? I had to retool all of my scripts. =/

-david

- Original Message -
From: "Kevin Waterson" <[EMAIL PROTECTED]>
To: "David E. Weekly" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, July 02, 2002 7:23 AM
Subject: Re: [PHP] DOCUMENT_ROOT disappeared on me!


> On Mon, 1 Jul 2002 22:01:27 -0700
> "David E. Weekly" <[EMAIL PROTECTED]> wrote:
>
> > All,
> >
> > I upgraded from PHP 4.1.2 to 4.2.1 today along with revving Apache to
1.3.26
> > from 1.3.22, and, woe is me, my $DOCUMENT_ROOT now evaluates to "" on
all of
> > my PHP pages!
>
> $_SERVER['DOCUMENT_ROOT']
>
> Kevin
> --
> Kevin Waterson
> Byron Bay, Australia
>


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




Re: [PHP] DOCUMENT_ROOT disappeared on me!

2002-07-02 Thread David E. Weekly

> IMHO you're better off

I agree and understand why, but...

> but yes, if you set register_globals = on then 
> you shouldn't need to have retooled your scripts.

I agree. =)

> Did you restart your 
> webserver after you adjusted php.ini?

Yes. Full stop/start cycle.

-david


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