automatically page must be refreshed using script
You can either embed some javascript in your code, or modify the header of the page in the html your code generates.
However, in both cases, don't. It loads the server and it's bad for the user experience. Ideally, you should only reload the part of the page you need using AJAX.There is probably a much better way to do what you need, but you'll need to tell us why you think you want a refresh to get help with it.
It looks like you're new here. Sign in or register to get started.