Need help with data processing

Discussion in 'PHP' started by tin2mon, Sep 6, 2010.

  1. #1
    Hello,

    I want to ask for a suggestion.

    I have a website, where user need to put some inputs and after the user click the button, the system will do data processing for each input.
    The problem now is, user need to wait for the data to be process.
    More input, more waiting time.

    I'm thinking to have a system where the input will be store in a database or file and the server will process the input later in the background.User can check the status of the output at certain page.

    Is there any way to do the queue data processing ?
     
    tin2mon, Sep 6, 2010 IP
  2. Rainulf

    Rainulf Active Member

    Messages:
    373
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    85
    #2
    There's a way for everything. ;) But I don't get it, it shouldn't take THAT long to process data.. It would help if you elaborate what type of data you are processing, etc.
     
    Rainulf, Sep 6, 2010 IP
  3. sarahk

    sarahk iTamer Staff

    Messages:
    28,901
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #3
    You just need to use ajax to process the submitted data and present a new input box/cleared input box.

    read up anything on ajax (which is actually javascript) and how it can work with PHP in the backend. If you are using a content management systems like WordPress, Joomla or Drupal you will already have all the scripts you need, you just need to know how to use them.
     
    sarahk, Sep 6, 2010 IP
  4. TheWiseGuy

    TheWiseGuy Member

    Messages:
    113
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #4
    well you can simply store data in a table that has a column that stores the current data status, set it to 0 during the insert and update it to 1 when it's been processed.
    Give the user a page to check his data status

    If you give us more details maybe we can help you better
     
    TheWiseGuy, Sep 7, 2010 IP