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

  • SEARCH
  • Home
  • 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 8424373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:58:17+00:00 2026-06-10T03:58:17+00:00

I have a PHP web service that I am building. I can for see

  • 0

I have a PHP web service that I am building.

I can for see a problem looming, and would like some input on how to combat it, before I write too much code.

I have 14 sites, which each contain an instance of a mysql database, which is updated by another custom perl script.

In order to consolidate this data into a single web front end, I am attempting to write a php web page that does the following.

On the front page, the web server connects to all 14 database servers and pulls back the information it requires, and then renders it on the page. Currently this works flawlessly as all the data is held on my local machine, but in production this data will be spread across the 14 separate databases.

So my question is, what is the best way to go about abstracting the database reads from the the UI painting. Ideally i would like to have the full webpage render, with a loading bar indicating when the user could expect the data to be displayed.

Is this something achievable via AJAX, or should i be looking in another direction.

Thanks in advance.

  • 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-06-10T03:58:18+00:00Added an answer on June 10, 2026 at 3:58 am

    I would do something like this:

    • create a small php proxy that can be callable from AJAX as you cannot connect to other website with AJAX
    • display full page layout with the elements empty
    • start displaying elements as soon as the DOM is ready with AJAX
    • every element will have a loading bar as soon as you start loading data from functions

    Eg:

     ___________________________________
    | data_1 | data_2 | data_3 | data_4 |
     ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
    

    start function loadData1() will replace data1_id with a loading bar and start AJAX call

     ___________________________________
    | ...... | data_2 | data_3 | data_4 |
     ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
    

    Same for other elements

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

Sidebar

Related Questions

Can any body have idea how to consume php soap web service that have
I have a working PHP web service that returns data (if I input the
I have a PHP Code, that uses a web service to query some data.
I have a app that loads some json from my php web service. This
I have .Net client that sends files. How can i use PHP web service
I have a php web service that takes the request from android/iphone app and
here's a problem I just stumbled into: I have an php based web service
I have a C# application that communicates with a PHP-based SOAP web service for
I have a PHP Web application that consumes a Web Service using PHP's native
I have a php based web service that churns out a heap of data

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.