I need to refresh page. without open page using cron job

any body explain how to do in cron job without open page i need to refresh page.

Because refresh page means new records updating insert into database.

1 Year
Discussion Span
Last Post by hericles

To 'refresh' a page is to reload it, generally in a browser window.
It sounds like you want to call a page to make some code run. This means your code should be in a script technically, not part of a webpage but you can still achieve what you need.
You'll need access to your cron tab if you are on a linux server or the scheduled tasks manager on windows.
In linux you would enter this command into the cron tab
* * * * * wget -O - http://your-website-page/some-page.php >/dev/null 2>&1
The asterixs define at what time it runs, from left: minutes, hours, day of month, month, day of week. So you can use those to set exactly when and how often it runs.
The stuff at the end just makes sure the output isn't written any where

On windows using scheduled tasks, set up the task to run whenever you need and in the trigger section specify that it calls powershell and enter this as the argument:
-ExecutionPolicy unrestricted -Command "(New-Object Net.WebClient).DownloadString(\"http://your-website-page/some-page.php\")"

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.