o2T Posted April 30, 2004 Report Share Posted April 30, 2004 Vai ir iespeejams uzstaadiit sho php auth user no jebkuras formas, vai arii tikai izmantojot to briesmiigo auth logu? Link to comment Share on other sites More sharing options...
рпр Posted April 30, 2004 Report Share Posted April 30, 2004 <?php if(!isset($PHP_AUTH_USER)) { Header("WWW-Authenticate: Basic realm=\"My Realm\""); Header("HTTP/1.0 401 Unauthorized"); echo "Text to send if user hits Cancel button\n"; exit; } else { echo "Hello $PHP_AUTH_USER.<P>"; echo "You entered $PHP_AUTH_PW as your password.<P>"; } ?> Link to comment Share on other sites More sharing options...
Aleksejs Posted April 30, 2004 Report Share Posted April 30, 2004 No рпр teiktā jāsaprot, ka, nē, nevar. Link to comment Share on other sites More sharing options...
o2T Posted May 6, 2004 Author Report Share Posted May 6, 2004 Ai kaa zheel... Link to comment Share on other sites More sharing options...
Venom Posted May 7, 2004 Report Share Posted May 7, 2004 var, ja esi draugos ar socketiem un HTTP specifikāciju Authentificate REALM base64_encoded(usr,pwd) Link to comment Share on other sites More sharing options...
Recommended Posts