Once the web server sends the response ... the script ends. On Thu, Nov 11, 2010 at 11:25 AM, torok84 <[email protected]> wrote:
> Thanks for the replies, but I am afraid I meant something else. I was > thinking to execute on the server like this: > > 1. Calculate page to serve > 2. Send the page over the Internet > 3. Close TCP connection (if not using keep-alive) > 3. Do some more processing (like rebuild Lucene index) > 4. Terminate PHP process > > > > On 10 Nov, 16:58, Gareth McCumskey <[email protected]> wrote: > > As mentioned PHP is not client-side so its not really within the realm of > > PHP itself (never mind symfony) to do this kind of thing. The best bet is > to > > load the page as you say and have in it some ajax that on loaded then > > continues to call another PHP script. > > > > > > > > > > > > On Wed, Nov 10, 2010 at 5:29 PM, Macvek <[email protected]> wrote: > > > Hi, > > > > > You can invoke php code by using ajax from rendered page. > > > > > As far as I know, php is processed during time of connection and after > > > its exit, apache closes connection. > > > > > Regards, > > > Maciej Aleksandrowicz > > > > > 2010/11/10 torok84 <[email protected]>: > > > > I am developping a site in wichi I use PHP Lucene for full text > > > > indexing. Lucene is not really a lighting. It would be nice to do > alla > > > > the computing necessary to render the page, then send the page to the > > > > user and then execute the indexing. So i thought there are many > > > > situation in wich wold be cool to be able to execute some code after > > > > the page is completely sent to the user. This can significantly > > > > improve response times of the site, even if can have some side effect > > > > on server load. > > > > > > I wondered if, first of all, this is already possible in Symfony., > but > > > > it seems to me a too fancy feature... Moreover I am not sure this > > > > would be possible, I ma not an Apche expert, but maybe the > > > > architecture doesn't allow to keep PHP running after serving the > page. > > > > > > I do not really this feature, I just thought this could be cool. Any > > > > comment would be nice :) > > > > > > Paolo > > > > > > -- > > > > If you want to report a vulnerability issue on symfony, please send > it to > > > security at symfony-project.com > > > > > > You received this message because you are subscribed to the Google > > > > Groups "symfony users" group. > > > > To post to this group, send email to [email protected] > > > > To unsubscribe from this group, send email to > > > > [email protected]<symfony-users%[email protected]> > <symfony-users%2bunsubscr...@goog legroups.com> > > > > For more options, visit this group at > > > >http://groups.google.com/group/symfony-users?hl=en > > > > > -- > > > If you want to report a vulnerability issue on symfony, please send it > to > > > security at symfony-project.com > > > > > You received this message because you are subscribed to the Google > > > Groups "symfony users" group. > > > To post to this group, send email to [email protected] > > > To unsubscribe from this group, send email to > > > [email protected]<symfony-users%[email protected]> > <symfony-users%2bunsubscr...@goog legroups.com> > > > For more options, visit this group at > > >http://groups.google.com/group/symfony-users?hl=en > > > > -- > > Gareth McCumskeyhttp://garethmccumskey.blogspot.com > > twitter: @garethmcc > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<symfony-users%[email protected]> > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
