php中實現登陸彈出框狀況

1. 效果圖php 2.代碼code <?php if($_SERVER['PHP_AUTH_USER']=='user'&&$_SERVER['PHP_AUTH_PW']=='pw'){ echo('驗證經過'); }else{ header('WWW-Authenticate: Basic realm="user"'); header('HTTP/1.0 401 Unauthoriz
相關文章
相關標籤/搜索