This repository contains a user authentication system built with PHP and MySQL. It includes features such as user registration, login, and logout functionalities.
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/iqbolshoh/php-authentication.git
-
Navigate to the project directory:
cd php-authentication
-
Make sure you have a local server setup (e.g., XAMPP, WAMP, MAMP) and place the project files in the server's root directory.
-
Import the database:
- Open your MySQL database management tool (e.g., phpMyAdmin).
- Create a new database.
- Import the
database.sql
file into the new database.
-
Update the database configuration:
- Open
includes/config.php
and update the database connection details.
- Open
To use the application, open your browser and navigate to http://localhost/php-authentication
. This will load the main page of the application.
- Go to the signup page (
signup/
). - Fill out the registration form and submit it.
- Upon successful registration, you will be redirected to the login page.
- Go to the login page (
login/
). - Enter your credentials and submit the form.
- Upon successful login, you will be redirected to the index page (
index.php
).
- Click the logout button or navigate to the logout page (
logout/
). - You will be logged out and redirected to the login page.
Contributions are welcome! If you have suggestions or want to enhance the project, feel free to fork the repository and submit a pull request.
I love connecting with new people and exploring new opportunities. Feel free to reach out to me through any of the platforms below: