|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-11-30 20:57 UTC] bjori@php.net
[2009-12-08 01:00 UTC] doc-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 04:00:01 2025 UTC |
Description: ------------ // autho.php <? if( (empty($PHP_AUTH_PW)) || (empty($PHP_AUTH_USER)) || ($PHP_AUTH_USER!='ramesh') || ($PHP_AUTH_PW!='asdf')) { header('WWW-Authenticate: Basic realm="my first autho"'); exit(" authentication required "); } ?> // below is the code used to include the aotho.php in the //below script //{{QUESTION:}} At times the code works fine and //asks for username / password before page is display but not //at all times. sometimes it just shows up the page //without username / password. Any reasons?? pls guide!!tks {{QUESTION:}} <? require_once("autho.php"); ?> Reproduce code: --------------- --- From manual page: faq.using ---