fastcgi_finish_request nasıl kullanılacağına örnek ()

0 Cevap php

Can someone show a simple example on how to use fastcgi_finish_request() function? I googled but only found some general mention of it, some people say they use it successfully but I could not find a single example with code.

For example, I have a PHP object. To send a response to a browser I generate HTML, then returning it via getResult(). Then echo the result.

Bu gibi:

$obj = new controller();
echo $o->getResult();

Diyelim ki tarayıcısına sonucu göndermek için bu optimizasyon tekniği yararlanmak ve belki sonra Facebook API gibi, bazı API bağlanma gibi bazı potansiyel olarak uzun süreci bitirmek istiyorum diyelim.

Bunu nasıl yapıyor hakkında gitmek istiyorsunuz? Temelde ben fastcgi_finish_request(); aramak ve daha sonra php komut dosyası çalıştırmaya devam edebilirsiniz anlıyorum.

Ben sadece kendim anlamaya yeterince akıllı değilim, örnek kodu görmek gerekir.

0 Cevap