
PHPで上記の認証を行う方法私はすでにphpで独自の認証を持っていますが、上記のログイン画面を入力する方法。
次のチュートリアルを試してください。
http://www.howtoforge.com/htaccess_authentication
http://www.askapache.com/htaccess/apache-authentication-in-htaccess.html
その認証は、PHP ではなく Apache によって制御されます。
このチュートリアルをご覧ください: http://www.seochat.com/c/a/Search-Engine-Optimization-Help/Apache-Basic-User-Authentication-htpasswd-Tutorial-for-SEO/