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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:02:31+00:00 2026-05-22T23:02:31+00:00

I am trying to build an application that retrieves continuous streams of xml data

  • 0

I am trying to build an application that retrieves continuous streams of xml data which keeps on changing every second, then decode it and it insert it into a mysql database. So this script probably has to be executing on the server without any gui. But from the client side(from within the browser) the user should be able to start or stop the dumping process.

That is the script must be basically performing this.

 while($dump == true)
    {
    $fetchxml = "http://agent.getstream.org/sample?from=$seq";
    $seq = $fetchxml["nextsequence"];
    $somedata = $fetchxml["sumdata"];
    mysqlinsert_db;
    }

so that from the browser if i click a button in the server side i should be able to recieve it andchange $dump to true or false depending upon wether start or stop is pressed.

Is this possible? technology no constraint. infact i would be glad if some one can inform me what tech i should use in the backend for a requirement like this as frontend would obviously be in javascript.

  • 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-22T23:02:32+00:00Added an answer on May 22, 2026 at 11:02 pm

    You want a process on the server to halt and restart from a different process.

    One way to tell the continuous process to halt is using a lock file.

    while (true) {
       if (file_exists('continue.tmp')) {
          // Do whatever is done
       } else {
         // do nothing for a minute
         sleep(60);
       }
    }
    

    The other process just throws away continue.tmp to stop the processing and creates it to resume.

    A better alternative would be to exit the loop when the file is thrown away and restart the process using whatever method your server has for that – but how to do that really depends on the server used. But then by recreating the lock file in the restart you know instantly that it has started or not.

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

Sidebar

Related Questions

I'm trying to build a prototype application that consists of a table of data
we're trying to build an application that records the decibel level every seconds or
I'm trying to build an application that builds a resource file into a jar,
I'm trying to build a application that has different kinds of users, I'm using
I'm currently trying to build an application that inherently needs good time synchronization across
I am trying to build an Eclipse application that would work with a linux/motif
I'm trying to build an iPhone application that has two subviews in the main
I have an application that I'm trying to build with at least a nominally
I'm trying to build an application from source in windows that requires some Unix
I'm trying to build a native application that for all intents and purposes is

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.