I don't think this will work the way you want it to, blackberry. The contents of the username.txt file will be served up to all visitors to your web site. So if one person changes it, every other person seeing the next page will be faced with the wrong username.
How about instead using a cookie stored on the user's PC? No need to change any file on your server then. Their usernames get stored as a cookie on their PC - you can check for the presence of it and respond accordingly.
What do you think?
Incidentally, when you were seeing a white page aboe, that may also have been because there was an error in the php - a missing semicolon at the end of the first line. If display_errors is set to off in php.ini, then you will not get a report - just a blank page.
[edit]Changed DisplayErrors to the correct name, display_errors[/edit]