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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:55:45+00:00 2026-05-30T21:55:45+00:00

I have the following web php code: while ($row = mysql_fetch_array($results, MYSQL_NUM)) { printf(<p>ID:

  • 0

I have the following web php code:

while ($row = mysql_fetch_array($results, MYSQL_NUM))
{
printf("<p>ID: %s</p>", $row[0]);
echo exec ("php analysis.php " .escapeshellcmd($row[0]));
}

For a set of 4k users, the following code takes 15 minutes to execute with the results being displayed in increments of of ~1k users.

I want the results displayed at around the speed that the code is going so that anybody using the page is confused as to weather or not the code works. Is there some way to force the browser to display the data it was sent?

edit:
Flush is not producing noticeably different output.
edit:
My problem remains unresolved? Is there some client server model that can be implemented in JavaScript to facilitate this? Can Javascript open a socket and interrupt on socket data? Maybe using flash(which I know can use sockets…)

  • 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-30T21:55:46+00:00Added an answer on May 30, 2026 at 9:55 pm

    echo exec(...) waits before the command is finished. If you do not mind showing partial info, use passthru(...).

    Depending on your webserver, flush may work or not. If output buffering is enabled (implicitly using ob_start() or explicitly in php.ini), ob_flush() needs to be called as well.

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

Sidebar

Related Questions

I have a PHP app running happily on the following system: web app: PHP
I have the following code in a web.config file of the default IIS site.
I have the following code: SPList list = web.Lists[this.ListName]; SPListItem item = list.Items.Add(); now
I have the following code: $(document).ready(function(){ $.ajax({ url: svc/GetTweetsByUser.php, type: POST, success: function(data) {
I have following in my config.php file for one of my web app. //db
In a php page I have following code: if($_REQUEST['c']!=) // I get error on
I have a php script which i would need the following 3 web browsers
I have the following web config file. I am having some difficulty in retrieving
Say I have the following web.config: <?xml version=1.0 encoding=utf-8?> <configuration> <system.web> <authentication mode=Windows></authentication> </system.web>
I am using IIS V5.1. Integrated windows authentication I have a following web config:

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.