Login and Chat Application (AJAX,PHP-PDO and MySQL)

Submitted by: 
Language: 
Visitors have accessed this post 60914 times.

*Credit to sir Argie Policarpio for initiating this kind of program.

Have you ever wished to make your own chat box? So bad if not! Nevertheless, chat boxes are just an amazing work of programming and art which have tremendous usage; either it’s good or bad. Before going through, I’ll first give my own definition of the word chat box, chat box is a place where user can input or type user’s message and that message will be sent and be viewed into user chat mates’ screen in real-time basis.
After defining chat box, next thing will be the introduction of the programming compositions of the project that will be made:
• PHP – It will be the manager of the chat box, why I called it manager? Just stick to the tutorial and it will be thoroughly discussed.
• MySQL – It will provide the back end portion of the project.
• AJAX – It’s an acronym for Asynchronous JavaScript and XML which will be the key for avoiding full page reloads.

To know more about this script. Visit my blog site:
www.proglecturer.blogspot.com


Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

get this

Warning: include(../errors/err.php): failed to open stream: No such file or directory in C:\xampp\htdocs\chatbox\inc\connection.php on line 10

Warning: include(): Failed opening '../errors/err.php' for inclusion (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\chatbox\inc\connection.php on line 10

Works like a charm!!

how can i use this chat application on my website what do i need to do?

i m luking script for audito video text chat in php,mysql? do u know any idear

but i dont fine the username and the password

username: jmmaguigad password: espionage28

#JM Maguigad, PHP and VB 6 System Developer/Freelance Programmer
#Contact Infos: [email protected] or 09752276378

welcome. if you have any inquiry about this program later on, just tell it. :)

#JM Maguigad, PHP and VB 6 System Developer/Freelance Programmer
#Contact Infos: [email protected] or 09752276378

it only works online or even no net connection.? is not working on the wamp server

yes it is working even your offline. can you please specify or show what error you've encountered.

#JM Maguigad, PHP and VB 6 System Developer/Freelance Programmer
#Contact Infos: [email protected] or 09752276378

can anyone plz tell how to execute this code

install the needed file
*wampp
then put the extracted file in the htdocs then open your browser and put localhost/name_of_the_folder_where_the_file_is_located.

#JM Maguigad, PHP and VB 6 System Developer/Freelance Programmer
#Contact Infos: [email protected] or 09752276378

hey how can resolve this Warning: include(../errors/err.php): failed to open stream: No such file or directory in C:\xampp\htdocs\chatbox\inc\connection.php on line 10

Warning: include(): Failed opening '../errors/err.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\chatbox\inc\connection.php on line 10

hi,
i want to get receiver id same as a click on dropdown user please can you tell me how to get.

thanks

do you mean,after selecting in the selectbox the receiverid will be echoed?

#JM Maguigad, PHP and VB 6 System Developer/Freelance Programmer
#Contact Infos: [email protected] or 09752276378

hello!!!!
am on my final year project writing and I want you to help me with the basic entities and sample source code of the named system.. thanks

thank you for uploading the raw code for the chat project, i downloaded it and am interested in learning more about your apps.

thank you for the appreciation. i do hope i can download more scripts here. i'll just finish my project and i'll download some scripts again. thank you again. :)

#JM Maguigad, PHP and VB 6 System Developer/Freelance Programmer
#Contact Infos: [email protected] or 09752276378

Warning: include() [function.include]: Failed opening '../errors/err.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\chatbox\inc\connection.php on line 10

hello, that error just denote wrong location of the '../errors/err.php', please do check the location of that file then check the script. the script that i have downloaded is working well. please notify me if there's something wrong again.

#JM Maguigad, PHP and VB 6 System Developer/Freelance Programmer
#Contact Infos: [email protected] or 09752276378

when i run localhost/chat/index.php
it gives following error

error on line 2 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • You may insert videos with [video:URL]
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <th> <img> <h1> <h2> <h3> <iframe> [video]
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <asp>, <c>, <cpp>, <csharp>, <css>, <html4strict>, <java>, <javascript>, <mysql>, <php>, <python>, <sql>, <vb>, <vbnet>. The supported tag styles are: <foo>, [foo].
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.