Re: Re: [PHP] Non-blocking functions
| From: | Chris Carbaugh | Date: | Mon, 11 Dec 2000 04:33:51 +0000 |
| Subject: | Re: Re: [PHP] Non-blocking functions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-29632@lists.php.net to get a copy of this message | ||
You can call a PHP script and run it as a stand alone (command line
script in the background). Check out exec().
Of course you need PHP compiled as a stand alone exe.
Chris
On Sun, 10 Dec 2000, Kyle Jerviss wrote:
> Date: Sun, 10 Dec 2000 17:12:06 -0600
> To: John Biesnecker <amraam@ao.net>
> From: Kyle Jerviss <kjj@jerviss.org>
> Subject: Re: [PHP] Non-blocking functions
>
> if($enable_function_X){
> function X(){
> stuff;
> }
> }else{
> function X(){}
> }
>
> or do you need them to run each time, but don't want to hold up the
> user
> while they go?
>
> John Biesnecker wrote:
> >
> > Is it possible in PHP to call a function and have it return
> immediately so
> > that the rest of the code can be evaluated? I'd like to perform
> some
> > possibly lengthy network routines that aren't critical to the
> display of the
> > page each time a page is loaded, but I don't want to hold up
> everything to
> > do it.
> >
> > Thanks.
> >
> > - John
> >
> > --
> > 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
>
--
"What's the Constitution between friends?" - TIMOTHY J. CAMPBELL -
Response to President Cleveland, who refused to support a bill because
it was unconstitutional