Re: Non-blocking functions
| From: | Kyle Jerviss | Date: | Sun, 10 Dec 2000 23:12:06 +0000 |
| Subject: | Re: Non-blocking functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29602@lists.php.net to get a copy of this message | ||
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