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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:14:18+00:00 2026-05-24T14:14:18+00:00

I have a cycle. it holds quite a long time, I need to visualize

  • 0

I have a cycle. it holds quite a long time, I need to visualize the process work. how to do this?

while ($csvIterator->next()) {
 //a lot of code...
 visualizeProcess();
 }
  • 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-24T14:14:19+00:00Added an answer on May 24, 2026 at 2:14 pm

    EDIT

    -This assumes you are using PHP for web-based applications.

    In short, there is no easy way to do this. There are a lot of areas in which you would need to design your application smartly to handle it (ie: if you’re building a page piece by piece then what happens if its supposed to be secured? You’ll need to implement SSL and make sure that all AJAX calls are encrypted). Basically what you need to do is have the script executable in blocks, instead of having a loop that does the operation in its entirety on its own. For instance, have a php file that takes an integer as a query string and then uses that integer to do a different action. Once the integer is equal to a certain number you can be sure that everything you needed to do has been done and therefore progress makes it to 100%. You cannot have PHP send a page piece by piece back to a browser, which is what it seems you are proposing to do. You need to use AJAX calls (assuming this is a web application instead of a command line application). Do something like the following:

    1. Create a PHP file that takes in an int via query string. Have the integer that is passed along dictate the action that the PHP script undertakes (ie: 0 = get all session variables allotted, 1 = connect to the database and get the data you need to parse and push it into session, 2 = parse the data from session and do something).

    2. Create a PHP file that will be served to the client as the base page that will show the progress. From this page you will need to use Javascript to request the page mentioned in 1 with the various query strings. The AJAX calls that you issue have success and failure handlers, and in these you will be able to change what is being displayed on the page to reflect how the process is coming along.

    In short there is no easy way to do progress bars for web applications due to the nature of their distribution. I suggest that you look in to the way GET and POST requests work, the functionality of web servers, and the way that the PHP handler works w/ Apache to get a better idea of why your initial approach isn’t viable.

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

Sidebar

Related Questions

I have the cycle pulgin work on a page with a carousel. I need
As part of our development life cycle we have a number of process that
I have for cycle and there I create an array of names from the
I have implemented the Jquery cycle plugin on my page but I can't get
I have such a class: public class Cycle { public List<int> Edges { get;
I have a division operation inside a cycle that repeats many times. It so
I have three images that I want to cycle through when clicking on a
I have created a charity site for a cycle ride and when someone signs
I have played around and implemented JQuery cycle to create a carousel with images,
I am using jQuery cycle in combination with a mousewheel plugin. I have built

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.