Social Networking Site version 2 in PHP/OOP Free Source Code



This simple project is a Social Networking Site version 2. This is a web-based application project developed in PHP and MySQL Database. This project is a version of my developed Social Networking Site. The site provides an online platform to virtually interact with other users by sharing posts and photos. The project user interface was developed with Bootstrap Framework and AdminLTE. It also consists of user-friendly features and functionalities.

About the Social Networking Site version 2

I developed this project using the following:

  • XAMPP v3.3.0
  • PHP
  • MySQL Database
  • HTML
  • CSS
  • JavaScript
  • Ajax
  • jQuery
  • Bootstrap
  • Font Awesome
  • AdminLTE

This Social Networking Site version 2 is accessible to anyone. The users can simply register their system credentials by filling in the required fields and submitting the registration form. After the successful registration, the user will automatically log in to the site and will be redirected to the profile page where users can manage their personal information. In this project, the users can post content and images their posts will be only visible to them and their friends. Users can simply search for the user they know by searching them by name or email. Users can send a friend request to the others and also they can accept/confirm and decline friend requests. Each of the posts contains a like and comment feature. Like Comments are presented using a heart icon on each post. Comments and posts can be only deleted by the user who created them.

This Social Networking Site contains also an Admin Panel or Management Site where the site management can manage the list of posts, members, users, and system information. Here, the management can update the site, name, logo, background, and more. This site also requires a valid credential of the management user to gain access to the said features and functionalities of the system.



  • Home Page
    • Display the Published Posts of the users
  • Profile Page
    • Display Personal Information
    • Manage Personal Information
    • List Posts
  • Friends List Page
  • Friends Requests Page
  • Confirm Friend Request Page
  • Decline Friend Request Page
  • Reconsider Declined Friend Request Page
  • Search User
  • Create New Post
  • Post Images
  • Comment Section
  • Like and Unlike Post
  • Update Account Details/Credentials
  • Login and Logout


  • Home Page
    • Display the summary and images.
  • Member Management
    • List All Members
    • View Member Details
    • Delete Member
  • Post Management
    • List All Posts
    • View Post Details
    • Delete Post
  • User Management
    • Add New User
    • List All Users
    • View User Details
    • Edit User Details
    • Delete User Details
  • Update System Information
  • Update Account Details/Credentials
  • Login and Logout

The source code was developed only for educational purposes only. You can download the source code for free and modify it the way you wanted.

System Snapshots of some Features

Home Page

Social Networking Site version 2

Profile Page

Social Networking Site version 2

Manage Personal Information

Social Networking Site version 2

Friend List Page

Social Networking Site version 2

Friend Request Page

Social Networking Site version 2

How to Run ??


  • Download and Install any local web server such as XAMPP.
  • Download the provided source code zip file. (download button is located below)

System Installation/Setup

  1. Enable the GD Library in your php.ini file.
  2. Open your XAMPP Control Panel and start Apache and MySQL.
  3. Extract the downloaded source code zip file.
  4. Copy the extracted source code folder and paste it into the XAMPP's "htdocs" directory.
  5. Browse the PHPMyAdmin in a browser. i.e. http://localhost/phpmyadmin
  6. Create a new database naming social_networking_db.
  7. Import the provided SQL file. The file is known as social_networking_db.sql located inside the database folder.
  8. Browse the Social Networking Site version 2 in a browser. i.e. http://localhost/social_networking/.

Admin Default Access:

Username: admin
Password: admin123

Sample User Access:

Username: [email protected]
Password: cblake#123


That's it. You can now explore the features and functionalities of this Social Networking Site version 2 in PHP. I hope this will help you with what you are looking for and you'll find something useful for your future projects.

Explore more on this website for more Free Source Codes and Tutorials.

Enjoy :)

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.


Submitted bywalden (not verified)on Sat, 10/22/2022 - 07:29

how can it be uploaded to the web for a school proyect?
Submitted bySadau Salihu Yakubu (not verified)on Fri, 11/18/2022 - 11:27

When registering a new user it show "An Error Occured"

Add new comment