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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:30:39+00:00 2026-06-14T08:30:39+00:00

I have a Python web application in which one function that can take up

  • 0

I have a Python web application in which one function that can take up to 30 seconds to complete.

I have been kicking off the process with a cURL request (inc. parameters) from PHP but I don’t want the user staring at a blank screen the whole time the Python function is working.

Is there a way to have it process the data ‘in the background’, e.g. close the http socket and allow the user to do other things while it continues to process the data?

Thank you.

  • 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-14T08:30:40+00:00Added an answer on June 14, 2026 at 8:30 am

    You should use an asynchronous data approach to transfer data from a PHP script – or directly from the Python script, to an already rendered HTML page on the user side.

    Check a javascript framework for the way that is easier for you to do that (for example, jquery). Then return an html page minus results to the user, with the javascript code to show a “calculating” animation, and fetch the reslts, in xml or json from the proper URL when they are done.

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

Sidebar

Related Questions

I have a web application build in Django + Python that interact with web
I have a Python application in the bottle web-server that accesses a C shared-object
I'm writing a web application (in Python, not that it matters). One of the
I have been trying to track down weird problems with my mod_wsgi/Python web application.
I'm working on a Python web application in which I have some small modules
I have to build a web application which uses Python, php and MongoDB. Python
I have the 'luck' of develop and enhance a legacy python web application for
I'm developing a web application on App Engine Python. I have a form with
I have a python script that retrieves information from a web service and then
I have a python (django) web application. It uses an external web service (Facebook

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.