Page 1 of 1

Frontend and backend

Posted: Tue Aug 13, 2013 7:38 am
by lopolla
I have a webpage where I among other things are able to update content. A part of this update takes like 30 seconds because it retrieves external wepages and do stuff to it.

Well what I would like to do is like
1) Click update (registry in database or similar) - and no waiting time
2) Back end does the actual update (retrieve webpages and do stuff) - and registers again that update is done

I am unsure how I am able to pull off this - and I don't wanna use crontab (running it on Linux) - I don't know if I can set up a PHP-listener or something....any suggestions?

Looking forward to hear from you :)

Re: Frontend and backend

Posted: Tue Aug 13, 2013 8:04 am
by Christopher
There are several ways to do this, such as forking a process when you click update or using something like Gearman.

Re: Frontend and backend

Posted: Tue Aug 13, 2013 8:50 am
by lopolla
okay....I will have to have a closer look into that. Aren't there any built-in ways to handle this sort of thing - like through MySQL - like some PHP-program listening to the database - and if a value changes then it runs code - or something alike?