Re: Spaawn another process

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: YC Nyon <ycnyon(at)pd(dot)jaring(dot)my>
Cc: <pgsql-php(at)postgresql(dot)org>
Subject: Re: Spaawn another process
Date: 2002-11-06 19:16:08
Message-ID: Pine.LNX.4.33.0211061215240.27461-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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 </html> 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?

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Michael Upchurch 2002-11-06 19:50:04 Re: Spaawn another process
Previous Message David U. 2002-11-06 18:47:38 Re: Handling timestampz datatype