For example there is an index.php page is on the way

 /var/www/vhosts/supply.com/httpdocs/supply-dev/test1/index.php 

How to access this page and update it automatically 2 times a day at intervals?

  • Do you mean run your script? in Bitra there is a task for this, you can hang them on crowns - Orange_shadow
  • @Orange_shadow and run the script, everyone understood correctly. But my knowledge of the crown is now at zero (( - Evgeny Pivovarov
  • Well then, in the search for a vibvay installing the cron scheduler and forth, such questions 1000 on stackoverflow - Orange_shadow

1 answer 1

To the beginning of your PHP code. 10 number of seconds before the update.

  header('refresh: 10'); 

Go to " any.php " in 10 seconds.

 header('refresh: 10;url=any.php'); 

On JS

 <script> window.rld=function() {window.location.href="http://site.ru" } window.setTimeout("rld()",100) </script> 
  • if I am not on the page it will be updated if I am not on the page - Evgeny Pivovarov
  • @YevgenyPivovarov did not understand your question a little, if this is a question. Arrange the punctuation marks correctly - Insider
  • I apologize in a hurry ((Will the background work any way without going to the index.php page? - Evgeny Pivovarov
  • @ EvgenyPivovarov JS will always work, regardless of whether you are on the tab or not. - Insider
  • If you close the browser - will not work. - Andrewus