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 8561369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:29:15+00:00 2026-06-11T16:29:15+00:00

I certainly can’t solve this problem by myself after a few many days already

  • 0

I certainly can’t solve this problem by myself after a few many days already trying. This is the problem:

We need to display information on the screen (HTML) that is being generated in real time inside a PHP file.

The PHP is performing a very active crawling, returning huge arrays of URLs, each URL need to be displayed in real time in HTML, as soon as the PHP captures it, that’s why we are using Ob_flush() and flush methods to echo and print the arrays as soon as we got them.

Meanwhile we need to display this information somehow so the users can see it while it works (since it could take more than one hour until it finishes).

It’s not possible to be done, as far as I understand, with AJAX, since we need to make only 1 request and read the information inside the array. I’m not either totally sure if comet can do something like this, since it would interrupt the connection as soon as it gets new information, and the array is really rapidly increasing it’s size.

Additionally and just to make the things more complex, there’s no real need to print or echo the information (URLs) inside the array, since the HTML file is being included as the User Interface of the same file that is processing and generating the array that we need to display.

Long story short; we need to place here:

<ul>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    ...
</ul>

A never ending and real time updated list of URLS being generated and pushed inside an array, 1,000 lines below, in a PHP loop.

Any help would be really more than appreciated.
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-11T16:29:16+00:00Added an answer on June 11, 2026 at 4:29 pm

    Try web-sockets.

    They offer real-time communication between client and server and using socket.io provide cross-browser compatibility. It’s basically giving you the same results as long-polling / comet, but there is less overhead between requests so it’s faster.

    In this case you would use web sockets to send updates to the client about the current status of the processing (or whatever it was doing).

    See this Using PHP with Socket.io

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

Sidebar

Related Questions

This can certainly be done using a simple script and reading the database. I
My problem is certainly right on my face but I can't see it... I
Ok, I can certainly do this with some IndexOf, or even a Split(), but
I can certainly do this by iterating through results with PHP, but just wanted
I am trying to write a detector that checks if a certain directory can
I'm trying to understand when I can put certain objects into a users session
How can I escape certain characters in a string with a C# Regex? This
Why does each .h file starts with #ifndef #define #endif? We can certainly compile
I certainly can't use the random generator for that. Currently I'm creating a CRC32
We can certainly do it by string.chomp+\r\n but I'm wondering is there an elegant

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.