Php-mysql Course

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.

Requirements

- 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.

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 tag renders as emphasized text, displaying the text oblique?
<strong> <pre> <em>
<p>Web development courses: <em>CoursesWeb.net</em></p>
Which CSS property defines the space between the element border and its content?
margin padding position
h3 {
  padding: 2px 0.2em;
}
Click on the method which returns the first element that matches a specified group of selectors.
getElementsByName() querySelector() querySelectorAll()
// gets first Div with class="cls", and shows its content
var elm = document.querySelector("div.cls");
alert(elm.innerHTML);
Indicate the PHP variable that contains data from a form sent with method="post".
$_SESSION $_GET $_POST
if(isset($_POST["field"])) {
  echo $_POST["field"];
}
Ajax-PHP Chat Script

Last accessed pages

  1. Send POST data with file_get_contents (2926)
  2. Numbers and Math in ActionScript 3 (4281)
  3. The Fifth Agreement (18722)
  4. Display image file in Canvas, Check its type and size before Upload (3440)
  5. Get and Modify content of an Iframe (32090)

Popular pages this month

  1. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (234)
  2. Read Excel file data in PHP - PhpExcelReader (83)
  3. PHP Unzipper - Extract Zip, Rar Archives (72)
  4. The Four Agreements (69)
  5. The Mastery of Love (59)