|
When developing a web application that enables users to register, it
is often necessary to generate a password that would be (typically)
emailed to an email address provided by the user at registration time.
This article shows how to create a simple PHP function to generate a
password. The function, generate_password(), described below
generates an eight character password, although it would be very
straightforward to change it so that it generated a shorter or longer
password.
|