Display Wait Message..Need help

Discussion in 'PHP' started by crossline, Jan 22, 2006.

  1. #1
    hallo all,

    im using exec() function in my php program, but it takes time to get the

    output in my page. After I press submit button and before running exec()

    function, I wrote please wait message. The problem is this message doesnt

    coming before the command complete executed .
    Here also Im using flush() and sleep() functions to get output progress

    line by line.

    I need help to display wait message immediately after i press submit

    button.

    Thanks in advance
     
    crossline, Jan 22, 2006 IP
  2. dave487

    dave487 Peon

    Messages:
    701
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You may be better running the script in the background and using a meta refresh tag to reload the page every 20 seconds to see if the script is completed.
     
    dave487, Jan 23, 2006 IP
  3. expat

    expat Stranger from a far land

    Messages:
    873
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I get round these issues by sending a complete header and top part of the page with an x/y positioned please wait (somewhere in the midle.

    This is obliterated by a white background when sending the rest of the page once results are avilable.

    Expat
     
    expat, Jan 23, 2006 IP
  4. anton-io!

    anton-io! Active Member

    Messages:
    540
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #4
    anton-io!, Jan 23, 2006 IP
  5. expat

    expat Stranger from a far land

    Messages:
    873
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #5
    well as the site is on a fast dedicated you may or may not see it depending on db load.

    http://www.departures-arrivals.com/europe-who-flies-where.htm

    but view source should show it

    I don't use any flush or so just a large enough block that will be spewed out to the (IE) client.

    reg
    expat

    PS works on IE the google spyware (Firefox) is fast enough to not need it
     
    expat, Jan 23, 2006 IP