johnsmith153 Posted September 16, 2008 Share Posted September 16, 2008 I want to do somehting like this: 1) display "hello" 2) wait 5 seconds 3) display "hello again I have used sleep, but it seems to wait 5 seconds then display: hello hello together. Link to comment https://forums.phpfreaks.com/topic/124521-simple-php-wait/ Share on other sites More sharing options...
.josh Posted September 16, 2008 Share Posted September 16, 2008 that's because php is a server-side language. Everything is parsed on the server and then all the results are sent to the browser. You need to use javascript for something real-time like that. Link to comment https://forums.phpfreaks.com/topic/124521-simple-php-wait/#findComment-643015 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.