Jump to content

Refresh paeg after query finished


Go to solution Solved by requinix,

Recommended Posts

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

 

Link to comment
https://forums.phpfreaks.com/topic/312593-refresh-paeg-after-query-finished/
Share on other sites

  • Solution

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.

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.