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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:07:13+00:00 2026-06-10T22:07:13+00:00

I have a web application written completely in the usual html/css/javascript and some additional

  • 0

I have a web application written completely in the usual html/css/javascript and some additional stuff using jQuery.
I also have a pretty huge program written in python which needs to act on the input provided by the user on my web app.
Currently, I am writing the input from Php onto a file and reading it in python to do my manipulations.
Is there a better to achieve this sync?
Also, I need to execute my python program as soon as some user clicks the submit button. How do I make python wait for this?

  • 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-10T22:07:14+00:00Added an answer on June 10, 2026 at 10:07 pm

    Your way of syncing creates quite a big overhead due to severe I/O operations on regular files, you must deal with locks, and even small load growth can cause overall system crash.

    What I’d recommend you is to get acquainted with IPC techniques commonly used to exchange information between two processes:

    1. In Python there’s a subprocess module that will help you to use PIPES for communication between processes which is much more reliable than using regular files. PHP also has popen function that will allow you to call python process and pass data to it for further processing (via PIPES).
    2. Another way is to build a socket communication from scratch between two processes, where your PHP part will be a socket client and Python part will be a socket server (will require more work that previous way).
    3. You can also use better way of queuing data for further processing (I mean better than a regular file), e.g. using Message services (there are a lot of them, RabbitMQ, Redis Pub/Sub and so on) which are definitely available for using either from Python or PHP.

    There are also some techniques left out of scope, but I’ve chose those 3 ways for arranging IPC because they’re the simplest and the fastest in implementation.

    You can try all of them, or some, and analyze what would be the best way in your specific case.

    • 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 written in pure JavaScript (no pre-generated HTML except for
I have web application written in java using Eclipse. It has just one servlet
I have a web application written in ASP.NEt/C# and javascript. It uses session variables.
I have an asp.net web application written in C# using a SQL Server 2008
I'm working on a web application written on php. I have some objects (represented
My web application is written using jsp/javascripts. Backend Java. Have managed to implement the
I have a web application written in PHP using MySQL that I would like
We have a web application written in ASP.NET for .NET 3.5, using standard web
I have a web application written using Java servlets. I am using Tomcat 7
I have a web application written in PHP with many reports in HTML format.

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.