From: Reini U. <ru...@x-...> - 2006-11-27 21:31:34
|
Phil Cole schrieb: > Phil Cole inscribed the following text on 26/11/2006 15:25: >> Hi, >> >> I recently installed PHP Wiki version 1.2.10 (the version that the >> control panel on my hosting package gave me). >> >> It's working fine, but I'm finding I can't get to the admin pages... >> Clicking on the link to http://mywiki/admin.php brings up a Login box, >> but even if I put in the correct admin user and password details, it >> returns me back to that box. >> >> I've done a little digging and investigation, and it seems that the >> PHP_AUTH_USER and PHP_AUTH_PW variables aren't available. This is >> probably related to registerglobals being off in the PHP installation... >> but the ones that should replace those, $_SERVER['PHP_AUTH_USER'] and >> $_SERVER['PHP_AUTH_PW'], aren't available either. >> >> I've asked my site's admins to look into it, but anyone here have any >> ideas what I should ask them to look for? >> >> > > Bad form as it is to reply to one's own posts... The problem boils down > to my host running PHP as a CGI service rather than as an Apache Module. > > Don't have a fix/work around though... Use $_ENV instead of $_SERVER then. Sorry to be so short... -- Reini Urban http://phpwiki.org/ http://murbreak.at/ http://helsinki.at/ http://spacemovie.mur.at/ |