Programming A Chat Box From Scratch Using PHP and AJAX

A complete guide to create a simple Chat Box from scratch using PHP and AJAX
4.3 (7 ratings)
Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
1,072 students enrolled
25% off
Take This Course
  • Lectures 12
  • Length 1.5 hours
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works


Find online courses made by experts from around the world.


Take your courses with you and learn anywhere, anytime.


Learn and practice real-world skills and achieve your goals.

About This Course

Published 3/2016 English

Course Description

In this course we are going to create a simple chat box that will be completely responsive and will be really easy to get up and running on any server, but in this course we will use the XAMPP Server. A database is required - as we need to connect our Chat Box with the Database to make it Dynamic.

The programming language used is:

  • PHP - We will use PHP language in this course to build our simple chat box. PHP is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.
  • AJAX - AJAX is a technique for creating fast and dynamic web pages. AJAX is about updating parts of a web page, without reloading or refreshing the entire page.

The course is structured into 4 Sections and about it contains alomost about 1.5 hours of content. If you are interested in Programming Languages especially PHP then this course is for you. So lets get started and become an expert in PHP and AJAX by the end of this course.

What are the requirements?

  • This course teaches Programming from scratch, therefore, students do not need anything to begin this course
  • Everything will be explained and the required things will be downloaded in this course
  • Students only need to be familiar with how to operate a Computer

What am I going to get from this course?

  • Create a simple Chat Box using PHP Programming Language and AJAX
  • Design Chat Box using Cascading Style Sheet (CSS)
  • Create a Database in PHPmyAdmin
  • Establish a Database Connection with the Chat Box
  • Use AJAX to make their program Real-Time

Who is the target audience?

  • Students having a little knowledge about PHP Programming Language should take this course
  • Students who are not familiar with Programming should not opt for this course

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.


Section 1: Course Introduction

This lesson tells the students about the Modules and the lessons that this course contain.

Section 2: Downloading Essential Software's

In this lesson students will download XAMPP Server which is used to create projects involving coding on their own computer.

Downloading XAMPP Server
2 questions

Students will learn how to configure the XAMPP Server so it works properly on their computer.

Configuring XAMPP Server
1 question

By the end of this lesson students will download a free software named ATOM Editor which is used for coding.

Downloading ATOM Editor
1 question
Section 3: Chat Box Creation

In this lesson students will create the folders and files that will be needed to begin with their coding.

Creating Necessary Folders and Files
2 questions

In this lesson I will demonstrate students how to create the layout of the chat box

Creating the main page of Chat Box
1 question

Students will learn in this lesson how to design the Chat Box using Cascading Style Sheet (CSS).

Using CSS To Design The Chat Box
1 question

In this lesson students will create their own Database in PHPmyAdmin. They will also create a table and insert some rows in the table

Creating Database in PHPmyAdmin
1 question

After creating a Database in the previous lesson, I will demonstrate students how to establish a connection between the Databse and the Chat Box.

Linking The Chat Box To Database (Part 2)
Linking The Chat Box To Database
1 question

In this lesson students will do the final steps of their coding and by the end of this lesson they will be successful in creating a Chat Box using PHP and AJAX

Using Ajax To Make Our Chat Box Real-Time
1 question
Section 4: Conclusion

In this lesson students will recap al the things they did in this course and will be prepared for creating a Chat Box on their localhost

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Syed Ali, Online Instructor - Teaching Over 15,000+ Students!

I am the youngest Instructor present on Udemy Platform and have several years of experience in development environment as programmer. I have been programming since the age of 13.

On the other hand, I have expertise and experience in all phases of project life cycle namely analysis, design, coding, testing and implementation phases. I have experience in working with different operating systems, with keen focus on SharePoint development.

Also have efficiently managed the team and took care in delivering quality deliverables from my team which proved my managerial and leadership skill. Moreover, I have high web developing skills as a web developer and can make websites using WordPress, Joomla, and Drupal. Additionally, can migrate them from one host to the other. I have worked within the following realms:

- Developed script in Python programming language for 3D mapping using raspberry pi and quad-copter
- Developed system for processing data in parallel with data collection
- Redesigned tracking systems to work with tabular data
- Developed tools in Python for vehicle tracking and post-data-collection processing
- Data parsing, statistical analysis

Ready to start learning?
Take This Course