Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 16B14476942 for ; Wed, 6 Nov 2002 14:27:58 -0500 (EST) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by postgresql.org (Postfix) with ESMTP id 6A1B2476917 for ; Wed, 6 Nov 2002 14:27:49 -0500 (EST) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.6/8.12.6) with ESMTP id gA6JQNTH006672; Wed, 6 Nov 2002 12:26:23 -0700 (MST) Date: Wed, 6 Nov 2002 12:16:08 -0700 (MST) From: "scott.marlowe" To: YC Nyon Cc: Subject: Re: Spaawn another process In-Reply-To: <004b01c2855b$42e50a60$5340baca@gis> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MailBodyFilter: Message body has not been filtered X-MailScanner: Found to be clean X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/15 X-Sequence-Number: 1597 On Wed, 6 Nov 2002, 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? you should be able to do it like so: exec('commandname args 2>1&'); You are running some flavor of unix, right?