Chat System Using AJAX & PHP in Urdu/Hindi



Here is a small project for those who are learning PHP and AJAX. I’ve created a chat system which will work in real time same like other popular chat applications i.e Facebook & Yahoo. Using the video tutorials on this page, you’ll be able to learn creating a small but functional chat application with simple PHP PDO approach and a small touch of AJAX request via JavaScript. I hope you’ll like this tutorial.

chat-system-in-php

Chat Application in PHP & AJAX  (Overview)

This is just a basic chat system which you can use for testing or in real web development environment. Users will be able to join the chat room simply with a user name, they will be able to post messages and those messages will appear to other active users in real time with a sound for notification. I’ve used the simple PHP PDO approach to create this project, and at the same time, AJAX is used for making it real time without refreshing the page.

This is also a responsive chat application and for this I’ve used CSS3 properties so that you can learn new web designing and development techniques to adhere with the latest web development trends. In the future, I’ll use the PHP OOP method to create projects whether small or large, because the procedural PHP method is no longer acceptable in the market. At least, we should use PDO method in PHP for programming in 2016.

Video Tutorials in Urdu/Hindi

Here is the list of video tutorials for this project, watch them one by one, and if you face any difficulty then let me know via comment below the videos, and don’t forget to share these tutorials with your friends on social media, so they can also get benefit from this. Sharing is caring. Also find how to create a letters counter in PHP.

Video tutorial # 1 of 6

Video tutorial # 2 of 6

Video tutorial # 3 of 6

Video tutorial # 4 of 6

Video tutorial # 5 of 6

Video tutorial # 6 of 6

After watching the video tutorials above, I hope many PHP newbies will learn the easiest way to create a chat system in PHP and AJAX. Actually, I was asked many times via emails and messages that I should create such a project in PHP, but I did not get time to do so. But finally, it has come out.

You can also download the project files by clicking below link, this is a ZIP file which has all the data and files we used for creating this project. However, the database file is not included in the project files below, so you’ll need to create a database with the name “chat” and inside that database create a table (chat) with four columns in it.

Download the Project Files

Finally, thank you for watching the tutorials and thank you for visiting this page. You can share your thoughts in the comments section, as I’m always here to have a useful conversation with you 🙂 Happy Web Development!

About Abdul Wali

Abdul Wali is a Web Developer, SEO Consultant and Online Instructor working online for last 6 years on the internet and managing several successful websites. You can contact him via Email or follow him on Facebook. Also add him on .

Check Also

letters-counter-in-php

Letters Counter Using AJAX & PHP in Urdu/Hindi

I’ve come up with a small project using PHP and AJAX in Urdu/Hindi. After a …

  • Thanks for share us it is very informative knowledge thanks again

  • Thank you Sir, For this great information.

  • R.P

    isme jo data download kiya usme index.php ki oding kuch ala hai aap ke bataen hue video se body onload=”ajax();”>

    ine kuch aur aad hai esa Q Sir ye batyen jarur

  • R.P

    kya hum whataap par nahi jud sakte

  • R.P

    data base se connect nahi ho raha

    isme kuch sudar bataye mera pas c panel hai pic de raha hun

    • Cpanel ma tu apko jo MySQL database ha uska connection dena parega, localhost wala connection kam nahi karega.

  • Asalamo Alaikum wali bhai .bhai mera question yeh hai kai chat files to download karli mainai or chat database bhi bana liya hai as u said magar ab phas gaya hoon isai site per kis tarha add karo!! i am using same sahifa theme and want to use live chat on it bro so if u dont mind help me out with it my whats-app is +971555919122 or email:soul.reaver7867@gmail.com Thank you bro for a excellent tatourial

    • w/salam, you can use it on a custom build website in PHP, for WordPress I’ll recommend you using already existing chat scripts, which you can easily find online by writing “Live chat widget for WordPress” in Google.

  • Zeeshan Khan

    how can i download this video , i also try by IDM here and in daily moction , but in idm uts not downloading ?

    • You can download it using any third party tool.

      • Zeeshan Khan

        ok,tnx

      • Zeeshan Khan

        still not download , please tell me good downloader name

  • sir – how can i fill the author box in sahifa theme.? please Guide me

    • You can go to the user profile in WordPress dashboard, and fill the info there.

      • fill every thing but still have the problem. can there is any other reason.?

  • asif

    Asalamo Alaikum wali bhai, sir main ney php main website banai hy aur us ka site mape page xml main create kiya hy liken wo auto update nahi ho raha jab main new post ketra ho mujhey bar bar google ko resubmit kerna perta hy sitemap plz sir mujhey bata dy ke sitemap auto update ho

    • w/salam, WordPress ka sitemap automatically update hota ha, aur blogger ka bhi. ap konsa use kar rahe hai?

      • asif

        sir main na tu wordpress use ker raha ho aur na hi blogger wo tu php dynamic site hy jo main ney manually server per ki upload ki hy

        • phir ap xml-sitemaps.com par sitemap create kare, lekin isko apko manually submit karna parega.

  • Waseem Laghari

    yaar ye c-panel me to nahi chal raha shayad javascript ajax server me nahi chal raha plz yaar jquery ajax ki bi ek video is ke sath atteched kr den ya ko tarika bta den plz

  • R.P

    MySQL database hai connection kese banega

  • Zeeshan Ahmad Khan

    hallo sir i try many time but i have some error , so please send me the codding of Chat System Using AJAX & PHP in Urdu_Hindi in Gmail

    zsk.pak@gmail.com

  • Zeeshan Ahmad Khan

    Thanks you so much i find it , Allah bless you always <3

  • Gulzar

    Sir can you mail me SQL table of the php chat system?
    my mail id is
    muhammadgulzar1998@gmail.com

  • ashish vc

    hi bhai, i have done everything but when i used two browser to chat , ek chat pe name ashish lika aur use send kiya aur other browser mei wo message deka, and other browser alag nam se cha kiya tho pehle wale browser mei chat history nahi dik raha hei