tivadarsubotica Posted May 3, 2021 Share Posted May 3, 2021 Hi, I have an admin folder where I need to push the scrapping button to do query (scraping some pages). The file for scarping is in root. In the Admin pane have a listing of news and in navbar have a "Scraping button". <!-- bootstrap navbar part --> <li class="nav-item"> <a class="nav-link active border text-yellow-100p" aria-current="page" href="../scraping/index.php">LOAD NEWS</a> </li> So, I want to push the "LOAD NEWS" button and after the scraping query is finished to reload page with news list in same place in Admin. If possible I want a simpliest way to do this... Thanks in adwanced, T Quote Link to comment https://forums.phpfreaks.com/topic/312593-refresh-paeg-after-query-finished/ Share on other sites More sharing options...
Solution requinix Posted May 3, 2021 Solution Share Posted May 3, 2021 This is a link to the page. The link does not matter once you arrive on that page. If you want to do something with that page then the link to the page is not where you should be focusing your efforts. If the scraping is all done in PHP and there is no output of any kind (or you can remove all of the output already there) then all you have to do is use a header() redirect at the end of the script. Quote Link to comment https://forums.phpfreaks.com/topic/312593-refresh-paeg-after-query-finished/#findComment-1586294 Share on other sites More sharing options...
tivadarsubotica Posted May 3, 2021 Author Share Posted May 3, 2021 1 hour ago, requinix said: This is a link to the page. The link does not matter once you arrive on that page. If you want to do something with that page then the link to the page is not where you should be focusing your efforts. If the scraping is all done in PHP and there is no output of any kind (or you can remove all of the output already there) then all you have to do is use a header() redirect at the end of the script. Thank You, its working. I just worry about "admin login", because that have a "timer" for login, and if the cookie is expire in mean time (after submit), than the user must to log in again in Admin pane. Quote Link to comment https://forums.phpfreaks.com/topic/312593-refresh-paeg-after-query-finished/#findComment-1586295 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.