pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Papp Gyozo <pgerzson@freestart.hu>
To: YC Nyon <ycnyon@pd.jaring.my>
To: pgsql-php@postgresql.org
Subject: Re: Spaawn another process
Date: Thu, 7 Nov 2002 10:53:27 +0100
Message-ID: <E189iLM-0004Na-00@relay.freestart.hu> (raw)
In-Reply-To: <004b01c2855b$42e50a60$5340baca@gis>
References: <004b01c2855b$42e50a60$5340baca@gis>

2002. november 6. 07:09 dátummal YC Nyon ezt írta:
| 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?

I think it's a wrong idea, there is a more sophisticated way to achive 
this. For more information see register_shutdown_function() in the PHP 
manual. (http://php.net/register_shutdown_function)
|
| TIA
| Nyon
|
|
| ---------------------------(end of
| broadcast)--------------------------- TIP 4: Don't 'kill -9' the
| postmaster

-- 
Papp, Győző
- pgerzson@freestart.hu



view thread (6+ messages)

Message-ID: <E189iLM-0004Na-00@relay.freestart.hu>
Permalink:  ../E189iLM-0004Na-00@relay.freestart.hu/
Also on:    postgresql.org/message-id/E189iLM-0004Na-00@relay.freestart.hu

 · 

reply

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: pgerzson@freestart.hu, ycnyon@pd.jaring.my
  Subject: Re: Spaawn another process
  In-Reply-To: <E189iLM-0004Na-00@relay.freestart.hu>
  References: <004b01c2855b$42e50a60$5340baca@gis> <E189iLM-0004Na-00@relay.freestart.hu>

* 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