-1

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.

amit
  • 1
  • 1
  • 18
  • 28

1 Answers1

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
  • @Amit - No, you will need to use JavaScript or CSS to do this. – Mark 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