Re: [PHP] DOCUMENT_ROOT disappeared on me!

2002-07-03 Thread Jesper Brunholm

David E. Weekly wrote:
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.

And you're sure to be out of any caching?

regards

Jesper Brunholm

-- 
Phønix - Danish folk music from young musicians - http://www.phonixfolk.dk



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




[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 Kevin Waterson

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

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 Erik Price


On Tuesday, July 2, 2002, at 10:47  AM, David E. Weekly wrote:

 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. =/

IMHO you're better off, but yes, if you set register_globals = on then 
you shouldn't need to have retooled your scripts.  Did you restart your 
webserver after you adjusted php.ini?



Erik






Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


-- 
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




Re: [PHP] DOCUMENT_ROOT disappeared on me!

2002-07-02 Thread Jason Wong

On Tuesday 02 July 2002 22:58, David E. Weekly wrote:
  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.

And you verified that register_globals is on using phpinfo() ?

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
I'm encased in the lining of a pure pork sausage!!
*/


-- 
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 Steve Yates

David E. Weekly [EMAIL PROTECTED] wrote in message
000701c221d7$656f8d90$[EMAIL PROTECTED]">news:000701c221d7$656f8d90$[EMAIL PROTECTED]...
 I had to retool all of my scripts. =/

This is probably too late but one can use extract($_POST) or similar at
the beginning of a script to create those variables.  I presume $_SERVER
works as well.

 - Steve Yates
 - Peace.  (subject to change without notice)

/ Taglines by Taglinator - www.srtware.com /





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