Professional Documents
Culture Documents
Vdocument - in - Online Chat Application Documentdocx
Vdocument - in - Online Chat Application Documentdocx
Vdocument - in - Online Chat Application Documentdocx
CHAPTER 1
INTRODUCTION
ABSTRACT
Online chat application for educational institution like Chat application
each other over the World Wide Web. This project resolves almost all the
and the company are similarly helped by the suggested project. This chat
CHAPTER 2
SYSTEM REQUIREMENT
O) * Windows 5%67
8anguage * %&%
Front 9nd * /reamweaver
Back 9nd * 5ampp server with 1y):8
Browser * 'ny Web Browser
2.3.1 DREAMWEAVER
Ado! D"!#$%!#&!":
2.' DATABASE
CHAPTER 3
%&% code can be simply mi!ed with &T18 code$ or it can be used in
combination with various templating engines and web frameworks. %&%
code is usually processed by a %&% interpreter$ which is usually
implemented as a web serverDs native module or a Common ateway
nterface ?C e!ecutable. 'fter the %&% code is interpreted and
e!ecuted$ the web server sends resulting output to its client$ usually in
form of a part of the generated web page E for e!ample$ %&% code can
generate a web pageDs &T18 code$ an image$ or some other data. %&%
has also evolved to include a command(line interface ?C8 capability
and can be used in standalone graphical applications.
SYNTA(
The following &ello world program is written in %&% code embedded in
an &T18 document*
G/OCT;%9 htmlH
htmlH
headH
titleH%&% Test6titleH
6headH
bodyH
)*+,+echoDpH&ello World6pHDI*-
6bodyH
6htmlH
)*D&ello worldDI
The %&% interpreter only e!ecutes %&% code within its delimiters.
'nything outside its delimiters is not processed by %&% ?although non(
%&% te!t is still subject to control structuresdescribed in %&% code. The
most common delimiters are <?php to open and ?> to close %&%
sections. <script language="php"> and </script> delimiters
are also available$ as are the shortened forms <? or <?= ?which is used
to echo back a string or variable and ?> as well as ')%(style short
forms <% or <%= and %>. )hort delimiters make script files less
portable$ since support for them can be disabled in the local %&%
configuration$ and they are therefore discouraged. The purpose of all
these delimiters is to separate %&% code from non(%&% code$ including
&T18.
USE OF PHP
%&% is a general(purpose scripting language that is especially
suited to server(side web development$ in which case %&% generally
runs on a web server . 'ny %&% code in a reLuested file is e!ecuted by
the %&% runtime$ usually to create dynamic web page content or
dynamic images used on websites or elsewhere. M22-N t can also be used
O+!0 So7"5!
%&% is freely available for use. The community of open source %&%
developers provides technical support and is constantly improving
updating the core %&% functionalities. %&% is available at free of cost
under %&% eneral %ublic 8icense and most of its associative reLuired
softwareDs like 1y):8$ Te!t 9ditors and 'pache )erver are also freely
available$ so it proves very cost effective for the developers.
C"o8P6#4o"$
Po%!"
)everal web tasks can now be easily perform using %&%. For e!ample
now we can develop from small websites to giant business and
organi#ational websites$ informative forums$ chatting platforms$ C41
solutions$ e(commerce shopping carts$ community websites$ e(business$
shopping carts and gigantic database driven sites.
U!" F"/!0d69
Q7/5
%&% is designed to work well with the web$ and so things like accessing
the 9T and %O)T and working with &T18 and 48s are built(ins in
the %&% language. This makes it really concise and straightforward to
make a website.
E;!0/o0
E#9 D!+6o9$!0
There are many hosting companies that will$ for a few dollars a month$
give you a server running %&% so you can make a website really easily.
A7o$#/5#669 R!4"!,!
O,!" Too6
f you need to access other web based tools like oogle maps ?which is
always advisable for a business website$ or any other$ %&% makes it
easy to access.
S!57"/9
%&% offers security as well that helps prevent malicious attacks. These
security levels can be adjusted in the .ini file.
T#6!0 A&#/6#/6/9
;ou can hire %&% programmers more easily than any other language
programmers since so many people know the language.
• 1y):8
• %&%
• %erl
USE
Co$+o0!0
• 'pache ,.-.20
• 1y):8 3.<.,0
• %&% 3.3.23
• php1y'dmin -.,.7.2
• 'pache ,.-.20
• 1y):8 3.<.,0
• %&% 3.3.23
• php1y'dmin -.,.7.2
• Open))8 2.0.2i
PHP = M9SQL
Q7!"/!
The Luery above selects all the data in the K8astPameK column from the
K9mployeesK table.
E(ISTING SYSTEM:
DISADVANTAGES:
&eavy work .
8ow 1aintenance.
&igh Cost
PROPOSED SYSTEM
students and teachers and the company are eLually benefited by the
proposed system.We are introducing a new software called C&'T
)94+94 for chatting purpose. We can say thoroughly that this software
is very useful for the college. t is mainly designed for the college to
reduce the communication gap between the different peoples in a
college.
ADVANTAGES
&igh )ecurity
Organi#ed Work
SYSTEM STUDY
FEASIBLITY STUDY:
♦ 9COPO1C'8 F9')B8T;
♦ T9C&PC'8 F9')B8T;
♦ )OC'8 F9')B8T;
ECONOMICAL FEASIBILITY
This study is carried out to check the economic impact that the
system will have on the organi#ation. The amount of fund that the
company can pour into the research and development of the system is
limited. The e!penditures must be justified. Thus the developed system
as well within the budget and this was achieved because most of the
technologies used are freely available. Only the customi#ed products had
to be purchased.
TECHNICAL FEASIBILITY
SOCIAL FEASIBILITY
IMPLEMENTATION:
MODULES:
For this application the modules are divided between student and
staff on the basis of permissions that are given to them for
manipulating the member.
)tudent
)taff
'dministrator
Broadcast
1ulticast
STUDENT:
ADMIN:
STAFF:
BROADCAST:
MULTICAST:
Member
n multicast ?one(to(many or many(to(many distribution Registration
f member
User
Login
Search Member
Process
user
Admin
&ome page
Online
chat
SYSTEM TESTING
INTRODUCTION
• is sufficiently usable$
's the number of possible tests for even simple software components is
practically infinite$ all software testing uses some strategy to select tests
that are feasible for the available time and resources. 's a result$
TESTING PROCESS
F!#7"!
TYPES OF TESTING
Ad�#!
D/#d�#!
• nefficient testing$ due to the fact that the tester only has limited
knowledge about an application.
The tester needs to have a look inside the source code and find out
which unit6chunk of the code is behaving inappropriately.
Ad�#!
• 's the tester has knowledge of the source code$ it becomes very
easy to find out which type of data can help in testing the application
effectively.
D/#d�#!
• /ue to the fact that a skilled tester is needed to perform white bo!
testing$ the costs are increased.
TESTING STRATEGIES
U0/ T!/0
nit testing involves the design of test cases that validate that the
internal program logic is functioning properly$ and that program inputs
produce valid outputs. 'll decision branches and internal code flow
should be validated. t is the testing of individual software units of the
application .it is done after the completion of an individual unit before
I0!"#/o0 T!/0
F705/o0#6 T!/0
that* which typically think of as the thinking about the problem and
using abstraction ?data structure design$ comes the coding phase. Once
you have written code you need to test it. ;es$ know this is boringG But
unit testing$ sub(system testing$ system testing and finally integration
testing are a really important part of the life cycle of good software
development.
Types of Errors
The major groups of errors found in system development are
reLuirement spec$ design spec and coding errors. n what follows$ we
discuss these common types of errors found in systems.
software engineers in the design phase can be helped with writing good
clear specs that people read and discuss in detail in design reviews
before a line of code is written.
Cod/0 E""o"
The main error people associate with software is coding errors. We
all make coding errors. &aving a solid /esign )pec to work from that
has gone through a rigorous review helps. Translating that spec to an
mplementation )pec that we have discussed in this course is the ne!t
step. Once code is written and unit tested ?we will discuss this in the
ne!t lecture then Sdesk checking your code is your best friend ( more
on coding inspection below.
1ake believe that you are the computer e!ecuting the code line by
line ( update the data structures just like your code. )tudy the O in your
code as you e!ecute it. ;ou will find many errors this way. 9ven better
ask another person working in the project but not familiar with your
code to desk check your code. )ometimes errors can be staring you in
the face and a fresh set of eyes can pick those pesky bugs out. The take
home is that you do not need a computer to find bugs.
TEST CASES
CONCLUSION
FUTURE ENHANCEMENT
The project has met the standards reLuired to work at
College )ite. The project can be used as an availability to develop a
project for a different company with different business logic where in
the commonalties in certain areas remains the same at any business
level. By using the common features in future development the
development time as well as the cost of development can be decreased
considerably. This web application has been incorporated using %&%.
SOURCE CODE
USER REGISTRATION
Vphp
errorJreporting ?0I
obJstart?I
sessionJstart?I
reLuireJonce Dconfig6config.phpDI
if?isset?J%O)TMDsubmitDN
fullnameYJ%O)TMDfullnameDNI
genderYJ%O)TMDgenderDNI
usernameYJ%O)TMDusernameDNI
passwordYJ%O)TMDpassswordDNI
values?DfullnameD$DgenderD$DusernameD$DpasswordDIKI
result Y ZmysLlJLuery?insertJLueryI
if?result X
VH
script languageYDjavascriptDH
alert?D4egistration successDI
window.location.href Y Klogin.phpKI
6scriptH
Vphp
else
VH
unYJ%O)TMDanameDNI
pwYJ%O)TMDpassDNI
sessionJstart?I
J)9))OPMK8oginKN Y K;9)KI
header?D8ocation*adminhome.phpDI
[
else
X
VH
DATABASE CONNECTION
Vphp
conYmysLliJconnect?KlocalhostK$KrootK$KK$KchatKI
if ?mysLliJconnectJerrno?
X
[
VH
MEMBER LOGIN
Vphp
conYmysLliJconnect?KlocalhostK$KrootK$KK$KshareKI
66 Check connection
if ?mysLliJconnectJerrno? X
unYJ%O)TMDusernameDNI
pwYJ%O)TMDpassDNI
if?mysLliJnumJrows?result YY 2
sessionJstart?I
J)9))OPMDunameDNYunI
header?D8ocation*memberhome.phpDI
[
else
VH
conYmysLliJconnect?KlocalhostK$KrootK$KK$KshareKI
if ?mysLliJconnectJerrno? X
trH
thH191B94 P'196thH
thHF88 P'196thH
thH91'86thH
thH/'T9 OF B4T&6thH
thH/'T9 OF =OP6thH
6trHKI
while?row Y mysLliJfetchJarray?result X
echo KtrHKI
echo K6trHKI
echo K6tableHKI
mysLliJclose?conI
VH
GROUP DETAILS
Vphp
con Y mysLliJconnect?KlocalhostK$KrootK$KK$KshareKI
if?mysLliJconnectJerrno?
if?GmysLliJLuery?con$sLl
X
die?D9rrror*D . mysLliJerror?conI
[
else
echo Ksuccessfully Create groupKI
VH
CHATING PAGE
Vphp
class )impleChat X
66 /B variables
var s/bPameI
var s/bserI
var s/b%assI
66 constructor
function )impleChat? X
66mysLlJconnect?KlocalhostK$KusernameK$KpasswordKI
this(Hs/bPame Y DchatDI
this(Hs/bser Y DrootDI
this(Hs/b%ass Y DDI
[
function accept1essages? X
if ?JCOO_9MDmemberJnameDN X
if?isset?J%O)TMDsJsayDN UU J%O)TMDsJmessageDN X
ssername Y JCOO_9MDmemberJnameDNI
mysLlJselectJdb?this(Hs/bPameI
s1essage Y mysLlJrealJescapeJstring?J%O)TMDsJmessageDNI
if ?s1essage GY DD X
[
mysLlJclose?v8inkI
[
[
obJstart?I
reLuireJonce?DchatJinput.htmlDI
s)houtbo!Form Y obJgetJclean?I
return s)houtbo!FormI
[
function get1essages? X
mysLlJselectJdb?this(Hs/bPameI
s1essages Y DDI
if ?v4es X
while?a1essages Y mysLlJfetchJarray?v4es X
[
[ else X
[
mysLlJclose?v8inkI
obJstart?I
reLuireJonce?DchatJbegin.htmlDI
echo s1essagesI
reLuireJonce?DchatJend.htmlDI
return obJgetJclean?I
[
VH
REFERENCES
Harris
Nixon