RE: [PHP] redirection

From: Date: Mon, 24 Jul 2000 23:45:38 +0000
Subject: RE: [PHP] redirection
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-7853@lists.php.net to get a copy of this message
You can set the max-exec time to something higher (check manual for ini settings)... But if it's really something big, I suggest something like running the script throught the CGI version of PHP nohup'd. Then you could exec it and return without a wait. John -----Original Message----- From: Gunjan Kapoor [mailto:gkapoor@cmie.com] Sent: Monday, July 24, 2000 4:15 AM To: John Coggeshall Cc: php-general@lists.php.net Subject: RE: [PHP] redirection I've tried using flush() to flush the buffer but to no avail. I think I read about the existance of functions like ob_flush() .. but cannot get them to work or find a reference anywhere. According to what i gather from the second suggestion, won't the frame (smaller) which is supposed to show the output still expire? Warm Regards Gunjan On Mon, 24 Jul 2000, John Coggeshall wrote: > > 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 > >

« previous php.general (#7853) next »