i am trying to print the two echo commands with using delay function in php but unfortunately it is not working.the delay time is not working or showing.
Asked
Active
Viewed 651 times
-1
-
Possible duplicate of [PHP output text before sleep](https://stackoverflow.com/questions/3078867/php-output-text-before-sleep) – Script47 May 01 '18 at 09:52
-
can you please send the code here? – amit May 01 '18 at 09:55
-
1You've got to be kidding me right? Can *you* really not just click on the link and view it? – Script47 May 01 '18 at 09:55
-
thank you.actually i didnt concentrate on the link – amit May 01 '18 at 10:00
1 Answers
0
PHP is a server-side language, so delaying how information is displayed on the front-end can only be managed by CSS and/or JavaScript.

Mark
- 1,852
- 3
- 18
- 31
-
I think you are not quite right. It's possible to use ob_* PHP functions to perform partial output. – AndrewShmig May 01 '18 at 09:49
-
In php sleep(5) function reloading the page for 5 second then do some action , but I want first reload the page and after 5 seconds do any action, is this possible in php ( without jquery or script ) – amit May 01 '18 at 09:50
-
@amit what you want is not possible...php is server site, you need client site...use ajax if you need php function – Tobias May 01 '18 at 09:57
-
-
i cant use javascript and css there thats the main problem im facing right now. – amit May 01 '18 at 09:58
-
If you explain your situation a bit more in-depth in your initial question by clicking 'edit' we will be able to help you more. – Mark May 01 '18 at 10:03
-
im trying to integrate with the google style spreadsheet api but it gives an permission denied error everytime im trying to fix the issue.... – amit May 08 '18 at 05:18