Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id B7DD54761DD for ; Wed, 6 Nov 2002 15:00:29 -0500 (EST) Received: from p2p.partner2partner.net (unknown [12.107.230.28]) by postgresql.org (Postfix) with ESMTP id F1FC14760CB for ; Wed, 6 Nov 2002 15:00:28 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) (uid 80) by p2p.partner2partner.net with local; Wed, 06 Nov 2002 14:00:29 -0600 To: "YC Nyon" , pgsql-php@postgresql.org Subject: Re: Spaawn another process From: "Michael Upchurch" X-Sender: mike@partner2partner.net X-Mailer: Partner2Partner Communications X-Priority: 3 Message-ID: Date: Wed, 06 Nov 2002 14:00:29 -0600 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/17 X-Sequence-Number: 1599 "YC Nyon" wrote: >In my PHP page, I need to run a external program to insert map data into >Postgresql. However, the process is very slow (can be 10 mins). How do I >return a webpage telling the user that the process is running and permits >the user to browse the other parts of the web application. >My idea is to run the "exec();" after the tag. Would that be the >way? Use register_shutdown_function() to run a function which exec's the command. This turns lose of the browser while the command executes. Of course, you will lose the ability to poll the status of the command unless you build this into your function. -- Michael J. Upchurch Partner2Partner Communications, LLC