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 does not require database, it works with text files saved on server, so, it is fast and requires verry few server resources.

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

Requirements

- PHP 5+
- Browser with JavaScript enabled (preferable with support for CSS3).

The script can be included in both PHP or HTML files (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 text added in chat.
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 (for one day), 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), big (width 600 pixels), and small (width 245 pixels, good for mobile web site, or to be added in sidebar). Bellow you can see and test the two models.
More details and installation you'll find in a "Read.html" file, in the archive.
- The script has been tested successfully on Mozilla Firefox, Internet Explorer, Google Chrome and Opera.

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

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which attribute is used in <a> tag for the address of the link?
src href rel
<a href="http://coursesweb.net/" title="CoursesWeb.net">CoursesWeb.net</a>
Which CSS property sets the type of the text font?
font-family text-decoration font-size
h2 {
  font-family:"Calibri",sans-serif;
}
What instruction selects all the <div> tags with class="cls"?
querySelector("div.cls") getElementsByTagName("div") querySelectorAll("div.cls")
var elm_list = document.querySelectorAll("div.cls");
var nr_elms = elm_list.length;       // number of selected items
alert(nr_elms);
Indicate the function that can be used to get the sum of values in an array.
array_sum() array_diff() array_shift()
$arr = array(1, 2, 3, 4);
$arr_sum = array_sum($arr);
echo $arr_sum;       // 10
PHP Chat Script

Last accessed pages

  1. RegExp - Regular Expressions in ActionScript (369)
  2. Add, Change, and Remove Attributes with jQuery (3621)
  3. PHP PDO - exec (INSERT, UPDATE, DELETE) MySQL (4626)
  4. JavaScript Operators (145)
  5. While and Do While (285)

Top accessed pages

  1. PHP-MySQL free course, online tutorials PHP MySQL code (5211)
  2. Courses Web: PHP-MySQL JavaScript Ajax HTML CSS Flash-AS3 (4989)
  3. Get Attribute (ID, Class, Name, Title, Src) with jQuery (4783)
  4. PHP PDO - exec (INSERT, UPDATE, DELETE) MySQL (4626)
  5. PHP Chat Script (4366)