Dynamically adding contents to a page as social networks do | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 4

Dynamically adding contents to a page as social networks do

How can i dynamically add contents to a page? I'm new to PHP and i guess PHP can't do this as it finishes its work after page load. So what to do? heard about ajax and node.js. Any code snippets will be helpful...

9th Mar 2017, 3:25 PM
Chahat Gupta
Chahat Gupta - avatar
1 ответ
+ 10
Great question. This might aide your efforts, and I hope it does. The simplest way of understanding "server-sent events": https://www.w3schools.com/html/html5_serversentevents.asp
9th Mar 2017, 4:22 PM
Mark Foxx
Mark Foxx - avatar