Comunque, se stai su apache puoi sempre utilizzare .htaccess e .htpassword

PS: che ha di male l'autenticazione PHP+MySQL?