Results 1 to 2 of 2

Thread: How can I run several PHP pages in a row from one PHP page?

  1. #1
    Join Date
    Jun 2007

    How can I run several PHP pages in a row from one PHP page?

    I have a bunch of PHP pages which are essentially imports from text files into various databases, I want to tie them all up nice and neat so whomever runs them just has to click a single link/button/whatever to run them all. I know I could just have a redirect at the end of each to the next one, but in the future the order might change and the person changing it shouldn't have access to the actual import pages.

    It'd also be nice if there was a quick and clean way to keep the user updated on the progress of the imports. The entire process right now takes about 20 minutes a day so it's important to know if it is stalling up right away.

    Anyone have any suggestions?

  2. #2
    Join Date
    Jun 2003
    you could use includes and buffer flushing to send a message to the user every time it's completed an include, this would update the status bar and in most browsers display the newly sent content(you will have to flush after every echo or whatever though, since content is normally only sent at the end of the page, regardless of if the buffer is set or not)

    If you are using PHP please use the [PHP] and [/PHP] forum tags for highlighting...
    The same applies to HTML and the forums [HTML][/HTML] tags.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center