Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6716435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:44:00+00:00 2026-05-26T08:44:00+00:00

I have an array currently paginated by using URL parameters (eg. ….php?page=2&blah=blop&glob=gloo). At the

  • 0

I have an array currently paginated by using URL parameters (eg. ….php?page=2&blah=blop&glob=gloo).

At the moment, every single time the page loads, an XML file is being downloaded from a query engine, parsed and then im pulling an array of objects out I want to use.

How do I set this up so that I don’t have to reload the page and only have to read from the XML file once?

I am fairly new to PHP so please bear with me. After a bit of researching I did I think Ajax is appropriate for this? Please correct me if I am wrong. I tried to find out some stuff on paginating with Ajax but the most useful things I found were for paginating data from a mysql database, not for an array of objects.

Can anyone provide any pointers? I’m eager to learn.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:44:01+00:00Added an answer on May 26, 2026 at 8:44 am

    When I need this, I create a caching function that either A) Loads the XML from the original source and then saves it to a cache folder, or B) Loads it from the cache folder if it exists, and other criteria (like freshness) is met.

    On one site that had to retrieve data from a fairly slow server, I put A) into a cron job and always read from the cache for the website.

    If you need large data pagination, here’s a good example: http://net.tutsplus.com/tutorials/php/how-to-paginate-data-with-php/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an array $lines in php. Currently I want to assign the $lines
I currently have an Array that contains some URL's to images. @images = [
I currently have this array in layout.php <?php $arrLayout = array( section1 => array(
If I have an array in PHP that is currently null, shouldn't accessing an
I am currently using Java on AppEngine. I have an array of strings in
I currently have the dynamic array: char *myData[500][10]; //myData is the name of an
So, I have a class with an array inside. Currently, my strategy for enumerating
Now I currently have an array that contains 120 pairs. For example: [[1, 12],
I currently have an array of arrays. There are 10 single-item arrays in my
I currently have an array of location based information similar to below (which is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.