This is a Simple Script for Chat that can be added in web sites. It is made with PHP and JavaScript, using OOP (Object-Oriented Programming) and Ajax technology.
This Chat script can save chat data in MySQL database or in text files on server, and it uses verry few server's resources.

• To Download it, click this link: Simple PHP Chat Script.


- PHP 5.4+
- Browser with JavaScript enabled.

The script can be included directly in HTML page (in blogs, forums), but the server must run PHP.
The script can be easily changed to be used in other languages, just translating the texts into a single file.
Supports diacritics and less common characters, in nickname and in texts added in chat.
To avoid spam, the user can not add two identically texts one after another, and he can add the next text in chat after 3 seconds.
It can have one ore more chat rooms.
If you have a register /login script in your web site, you can set this Chat Script to allow only the logged users to add texts in chat rooms. By default, all the visitors can add a nickname and participate to chat.
The nickname, chat room, and the On / Off setting for beep sound are saved in cookies, so, to the next visit they will be read and used from cookie.
The user can add smiles in chat, and can format the text with Bold, Italic, an Underline.
In the archive with the script you'll find two graphic models (2 CSS files), large (width 600 pixels), and small (width 245 pixels, good for mobile devices, or to be added in sidebar). Bellow you can see and test the two models.
More details and installation you'll find in a "readme.html" file, in the archive.
- The script has been tested successfully on Mozilla Firefox, Internet Explorer, Google Chrome and Opera.

PHP Script Chat, is displayed in web browsers with JavaScript enabled.
• - This Chat Script is Free (does not provide support or personal modifications).
Ajax-PHP Chat Script

Daily Test with Code Example

Which tag adds an image in web page?
<div> <img> <span>
<img src="" width="191" height="63" alt="Courses-Web" />
Which of these CSS codes displays the text oblique?
font-style: italic; text-decoration: underline; font-weight: 500;
#id {
  font-style: italic;
Click on the jQuery function used to hide with animation a HTML element.
click() hide() show()
$(document).ready(function() {
  $(".a_class").click(function(){ $(this).hide("slow"); });
Click on the correctly defined function in PHP.
fname function() {} function fname() {} function $fname() {};
function fname($a, $b) {
  echo $a * $b;

Last accessed pages

  1. Making DIV Contents Scroll Horizontally, with multiple Div`s inside (3568)
  2. Editing, Changing XML - E4X (598)
  3. Script Users Register, Login, Online (12474)
  4. Get Attribute (ID, Class, Name, Title, Src) with jQuery (27460)
  5. AJAX Online Video Course and Tutorials (3921)

Top accessed pages

  1. Courses Web: PHP-MySQL JavaScript Ajax HTML CSS Flash-AS3 (37706)
  2. PHP-MySQL free course, online tutorials PHP MySQL code (29779)
  3. Read Excel file data in PHP - PhpExcelReader (29272)
  4. Get Attribute (ID, Class, Name, Title, Src) with jQuery (27460)
  5. PHP PDO - exec (INSERT, UPDATE, DELETE) MySQL (24299)