Facebook Status & Image upload using PHP

Facebook Status & Image upload using PHP – Now a days facebook is an biggest social network for world wide, there is no other network to beat the facebook so facebook still hold the first place but its not sure in future. Okay now we have move on our article. This tutorial show you how to upload images and status like facebook with comment box.

facebook status & image upload using php

Many students are request to develop facebook image upload comment application so here i have develop the simple image upload comment box in php. This is very simple in php, you have also develop this type of application after read this article.


Facebook Status & Image upload using PHP

There are many features are there in this article like upload pictures & comments, Live commenting system, Share updates, Delete comment and smiley support. So this application very helpful who wants to develop web application like picture commenting system.

Database Configuration

Here we have create one database and two tables, so first move to develop the database and create table. The table name is,
1.posts – used to store post description, image, video & post dates.
2.comments – used to store comments, commented date & comment picture.

Connection queries config file

Here, you have to create the connection coding and save the file (config.php) in your root directory.

Upload the Image without refresh

When you have upload a new image, its automatically update and visible without refreshing. This is one of main advantage in our facebook project. I have also develop the same queries like facebook application so its very helpful you.

Below code will be automatically sends the image details from the form through post request without any plugins. Form data objects provide a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest send() method.

Comment update code

When the user upload the new image and comment the particular image information via create new comments and update the same comments also.

Click to download
Click to download

We hope you have some idea in developing the commenting system, or if you still struggling in this tutorial just feel free to comment below.