From: scott.marlowe <scott.marlowe@ihs.com>
To: YC Nyon <ycnyon@pd.jaring.my>
Cc: pgsql-php@postgresql.org
Subject: Re: Spaawn another process
Date: Wed, 6 Nov 2002 12:16:08 -0700 (MST)
Message-ID: <Pine.LNX.4.33.0211061215240.27461-100000@css120.ihs.com> (raw)
In-Reply-To: <004b01c2855b$42e50a60$5340baca@gis>
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?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: scott.marlowe@ihs.com, ycnyon@pd.jaring.my
Subject: Re: Spaawn another process
In-Reply-To: <Pine.LNX.4.33.0211061215240.27461-100000@css120.ihs.com>
References: <004b01c2855b$42e50a60$5340baca@gis> <Pine.LNX.4.33.0211061215240.27461-100000@css120.ihs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox