Re: Forking in PHP

From: Date: Wed, 02 Jan 2002 21:32:53 +0000
Subject: Re: Forking in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-79261@lists.php.net to get a copy of this message
Hi, You could use register_shutdown_function() which should be called before the script ends (duh!). Define a function for your process and pass it's name to register_shutdown_function() . bvr. On Wed, 2 Jan 2002 15:14:59 -0600, charlesk wrote: >This works almost. Instead of having echo "hello"; you have a huge process that takes >a while, the browser wont redirect until the script is finished. This seems to be a >"feature" of IIS. Has anyone found a way to do something similar in PHP 4.1.0, IIS 5.0, Windows 2000 Server? > >I basically want a way for the user to see a different page than have them waiting for the >script to finish. > ><? >if ($process) >{ > echo "cool"; >} else >{ > header("Location: test2.php4?process=true"); > error_log("this means it works\r\n",3,"c:\errors\errors.txt"); > echo "hello"; >} >?> > >Charles Killmer >NetgainTechnology.com > >-- >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 (#79261) next »