Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #14183
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Asynchronous Function Call in PHP |
| Date | 2014-08-19 11:45 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <lsvreh$ia9$2@dont-email.me> (permalink) |
| References | <0ca6166b-e6cd-445e-be59-bee46d8f0070@googlegroups.com> |
On 8/19/2014 9:48 AM, Tuấn Dương Trần wrote: > Hi every body, > I'm building a website using Yii2, Redis, mysql. I need to write a function marking the songs, scores are stored in Redis and mysql. Scoring function using ajax to call the controler. I want this function to run in sequence as follows: The number is stored in Redis and returns immediately, then use a background thread to save the results into mysql. How i can do? > > Thanks. > You would have to start another script to update the MySQL database. This can be done with the exec() call, if it is allowed on your system (many shared hosts do not allow it). However, it shouldn't take long to update your database (i.e. typically milliseconds). Why do you think you need a background thread to do it? -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Asynchronous Function Call in PHP Tuấn Dương Trần <duongtt84@gmail.com> - 2014-08-19 06:48 -0700
Re: Asynchronous Function Call in PHP Jerry Stuckle <jstucklex@attglobal.net> - 2014-08-19 11:45 -0400
Re: Asynchronous Function Call in PHP Tuấn Dương Trần <duongtt84@gmail.com> - 2014-08-20 02:38 -0700
Re: Asynchronous Function Call in PHP Jerry Stuckle <jstucklex@attglobal.net> - 2014-08-20 06:25 -0400
Re: Asynchronous Function Call in PHP crankypuss <crankypuss@nomail.invalid> - 2014-08-21 03:18 -0600
Re: Asynchronous Function Call in PHP "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-08-21 16:37 +0200
Re: Asynchronous Function Call in PHP crankypuss <crankypuss@nomail.invalid> - 2014-08-21 03:16 -0600
csiph-web