I want to learn how to make one of these systems from scratch, and I find many unwanted links on Google. I just want a simple tutorial for most basic PHP and MySQL chats, so I can understand the concept before I start messing around with jQuery / AJAX.
PHP / MySQL Chat 101:
1) the user opens the browser2) the user enters the address in brower3) the browser sends an HTTP request4) the server receives the HTTP request5) the server tells the PHP interpreter to run the PHP script6) the PHP script connects to the MySQL database7) the PHP script receives list of messages8) PHP generates an HTTP response from the HTML code with messages and form9) The server sends an HTTP request to the browser10) The browser draws HTML from the HTTP response11) The user enters a new message and sends the form12) The browser sends an HTTP request Postthirteen)...
- , , . , .
, .
, , , , , AJAX. AJAX , .
http://tutorialzine.com/2010/10/ajax-web-chat-php-mysql/
id | user | timestamp | message
PHP, AJAX .
, , - . , , 100 ( ).
Ajax ( JSON), , JQuery.
php mySQL , . , , , 100 . 1000 , 100 ( ). mySQL . , .
, redis (facebook memcacheD).
, php , , node.js
Source: https://habr.com/ru/post/1783586/More articles:ΠΠ°ΠΊ ΠΏΠ΅ΡΠ΅ΡΡΠΈΡΠ°ΡΡ ΠΏΠ΅ΡΠ²ΠΈΡΠ½ΡΠΉ ΠΈΠ½Π΄Π΅ΠΊΡ? - mysqlConstant Accuracy Format Timestamp - sqlΠ²ΠΊΠ»ΡΡΠΈΡΡ Π·Π°Π³ΠΎΠ»ΠΎΠ²ΠΎΠΊ Π‘++ (fstream) ΠΈΠ· ΠΊΠΎΠ΄Π° Π½Π° ΠΎΡΠ½ΠΎΠ²Π΅ c? - c++How to lock a table in this VB6 / Access application? - ms-accessΠ‘ΡΡΠ»ΠΊΠ° Π½Π° ΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΠ΅Π»ΡΡΠΊΡΡ Π±ΠΈΠ±Π»ΠΈΠΎΡΠ΅ΠΊΡ Android Π·Π°ΡΡΠ°Π²Π»ΡΠ΅Ρ ΠΊΠ»Π°ΡΡ runtime Π½Π΅ ΠΎΠ±Π½Π°ΡΡΠΆΠΈΠ²Π°ΡΡ ΠΎΡΠΈΠ±ΠΊΡ Π² ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠΈ - androidWhere can I get a PHP / MYSQL chat application - jqueryΠ²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎ Π»ΠΈ ΠΈΠ·ΠΌΠ΅Π½ΠΈΡΡ ΡΠ΅ΠΊΡΡ ΠΊΠ½ΠΎΠΏΠΊΠΈ Π²ΡΠ±ΠΎΡΠ° Π² ΡΠΎΡΠΎΠ°Π»ΡΠ±ΠΎΠΌΠ΅ iphone? - iphonejquery datepicker not picking date? Conflict? - jqueryreintegrate workflow - svnMEF: GetExportedValue from type? - c #All Articles