Complete code for Web Live Text Chart Application with PHP and MySQL
Web Live Text Chart Application with PHP and MySQL - Part 6
Forward: In this part of the series, I give you the link to the complete code of all the files, in one zip format.
By: Chrysanthus Date Published: 14 Nov 2012
Introduction
Your Commercial Project
The project carried out in this series is a pedagogic project. In your commercial project you will need to do some modifications.
Talking about text that is transmitted from web page to the server and back: The text consists of name/value pairs, with the custom reserved words, & and =. In order to protect & and =, any & in a name or value should be replaced by %26; any = in a name or value, should be replaced by %3D. At the receiving end (web page), you can decode the name/value pairs by hand after you have separated them using the & and = in regular expressions. In that situation, you replace, %26 with & and %3D with =. ECMAScript has a function to do such encoding automatically and decoding automatically. You can use the functions if you want.
In your commercial application, you will also have to produce the normal and maybe the client web pages in such a way that if the operator is busy doing text conversation with some other customer, the next person seeking conversation will have to wait.
In this pedagogic project, the possibility of saving the complete conversation at the server was not taken into account. You have to take that into account in your commercial project.
In some cases, a client or operator can type two paragraphs in the Text Area element. In those cases the newline character is involved. PHP allows you to take that into consideration in your commercial project.
What about the case when the conversation is between two clients and not client and operator? Yahoo does this kind of thing. From a technical point of view, you can modify the project to be like two operators communicating.
Complete Application
All the files of this pedagogic project are in one zip file. You can download the zip file from:
Web-Live-Text-Chart-Application-with-PHP-and-MySQL.zip
End of Tutorial and End of Series
We have come to the end of this tutorial and the end of this series. I hope you appreciated the series.
Chrys