User Contributed Notes 4 notes

To suppress the PHP warning, just prepend the function with the error suppression character @. I'm usually against error suppression, but apparently some genius thought it was a good idea to really drive the point home that you have a bad login. Returning false wasn't enough?

"What is Anonymous FTP?"..."Traditionally, this special anonymous user account accepts any string as a password, although it is common to use either the password "guest" or one's electronic mail (e-mail) address. Some archive sites now explicitly ask for the user's e-mail address and will not allow login with the "guest" password. Providing an e-mail address is a courtesy that allows archive site operators to get some idea of who is using their services. "

If you want to remove the warning of a bad connection with handled error activated just add before :set_error_handler("my_error_function", E_ALL & !E_WARNING);and after the function :set_error_handler("my_error_function", E_ALL);