twzAuth-include.php (extended mode)
If you only have one page to protect, these commands can be in that script.
We've used this include file to make it easier to protect multiple pages.
$auth=new twzAuth('./users.db'); // TIP: datastore is safer above the web root
$Username = $auth->validate();