new web design - doesn't work

Neil Stevens neil at qualityassistant.com
Tue Feb 25 20:25:27 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday February 25, 2003 11:17, Dirk Mueller wrote:
> Hi,
>
> apparently there is a problem with the php when register_globals is off.
> you can see that you have a menu on kate.kde.org (which is on a server
> with register_globals on) and www.kde.org/info (which is on a server
> with register globals off).
>
> Can somebody of the php gods look into this?

$DOCUMENT_ROOT doesn't work with globals off.  You have to use 
$_SERVER["DOCUMENT_ROOT"], which of course breaks the use of 
$DOCUMENT_ROOT inside double quotes.

- -- 
Neil Stevens - neil at qualityassistant.com
"Distinctions by race are so evil, so arbitrary and insidious that a
state bound to defend the equal protection of the laws must not allow
them in any public sphere." -- Thurgood Marshall
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+W9E3f7mnligQOmERAhw7AJ9mdj0Slg1t6f4VWqSiafQ2gKouNgCfewMW
xOhAwwd1xrcYB5cJ4xaNVBg=
=+HoQ
-----END PGP SIGNATURE-----




More information about the kde-www mailing list