This is a simple blog built with PHP, MySQL, and Bootstrap. This project allows you to set up a basic blog with various features.
ٰVisite the website Online until: June 13, 2025 (Friday)
- Display posts as a list.
- Search functionality to find posts by title or content.
- Display categories of posts.
- Email subscription to receive newsletters or updates from the blog.
- Manage posts:
- Create, edit, and delete posts.
- Manage comments:
- Approve or delete comments.
- Manage categories:
- Create and edit new categories.
- Admin authentication:
- Only authenticated users can access the admin panel.
This project uses MySQL as the database to store information.
- posts: Stores information about posts (title, content, date, category, etc.).
- comments: Stores comments for each post.
- categories: Stores various categories for posts.
- users: Stores user information for authentication and admin access.
- Backend: PHP
- Frontend: HTML, CSS (Bootstrap)
- Database: MySQL
-
Clone the project:
git clone https://github.com/AliScripter/php-blog
-
Create the database: Create the database in MySQL and import the required tables. (The corresponding SQL file is included in the project).
-
Configure database connection: Set up the database details in the
config.phpfile. -
Run the project: Run the project on a PHP server (like XAMPP or LAMP) and visit
localhostin your browser.
- Home Page:
- Users can view posts.
- Use the search feature to find posts.
- Subscribe to receive newsletters by entering their email.
- Admin Panel:
- Only authenticated users can access the admin panel.
- In the admin panel, you can manage posts, comments, and categories.
This project is designed for local development. For deployment in other environments, additional configurations may be required.
If you'd like to contribute or expand this project, we welcome your help! Feel free to submit a pull request.