Re: redirection

From: Date: Mon, 24 Jul 2000 07:46:02 +0000
Subject: Re: redirection
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-7838@lists.php.net to get a copy of this message
You can flush an output buffer by calling ob_end_clean(). Richard > > I'm not 100% sure, but I think there is a way to force a output buffer > flush. If it exists (and will force header output), then you can use that to > force the header redirection before the script is finished. > > The alternative is to use frames and make a small frame that the posted data > shows up in (and use javascript to re-direct the user to another page in the > main form) > > John > > > -----Original Message----- > From: Gunjan Kapoor [mailto:gkapoor@cmie.com] > Sent: Monday, July 24, 2000 1:01 AM > To: php-general@lists.php.net > Subject: [PHP] redirection > > > > Hi, > I have a form that calls a .php script on submission. Since this script > takes a fairly long time to execute, I'd like to redirect the user to > another page while the script executes in the background. > What would be the best way to achieve this? > Using > <?php > header ("Location: <location>"); > .....script code .... > ?> > is of no avail as the redirection does not take place till the script > completes execution or the browser page expires,whichever is earlier. > Gunjan > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#7838) next »